home *** CD-ROM | disk | FTP | other *** search
/ CD/PC Actual 3 / CD ACTUAL 3.iso / linux / system / sliplogi.6 / sliplogi
Tape Archive  |  1995-07-31  |  70.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Tape Archive (archive/tar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file POSIX tar archive (GNU) default
99% file POSIX tar archive (GNU), directory sliplogin/, mode 42755 , uid 0 , gid 20 , size 0 , seconds 6007122257, user root, group games default
98% file data default
62% TrID TAR - Tape ARchive (GNU) default
37% TrID TAR - Tape ARchive (directory) default
100% dearkID deark: tar default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default (weak)
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype GNU tar archive default
100% detectItEasy Archive: tar default
100% binwalkID POSIX tar archive (GNU), owner user name: "n/" default
100% xdgMime application/x-tar default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 73 6c 69 70 6c 6f 67 69 | 6e 2f 00 00 00 00 00 00 |sliplogi|n/......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 34 32 37 | 35 35 20 00 20 20 20 20 |.... 427|55 . |
|00000070| 20 30 20 00 20 20 20 20 | 32 30 20 00 20 20 20 20 | 0 . |20 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 36 30 30 37 31 32 32 | 0 | 6007122|
|00000090| 32 35 37 20 20 31 31 31 | 37 36 00 20 35 00 00 00 |257 111|76. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 72 6f 6f 74 00 00 00 |.ustar |.root...|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 67 61 6d 65 73 00 00 |........|.games..|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 73 6c 69 70 6c 6f 67 69 | 6e 2f 73 6c 69 70 6c 6f |sliplogi|n/sliplo|
|00000210| 67 69 6e 2e 63 00 00 00 | 00 00 00 00 00 00 00 00 |gin.c...|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 36 |....1006|44 . 6|
|00000270| 32 35 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |25 . 1|44 . |
|00000280| 20 20 33 33 34 33 33 20 | 20 36 30 30 37 32 36 36 | 33433 | 6007266|
|00000290| 35 34 37 20 20 31 33 37 | 37 35 00 20 30 00 00 00 |547 137|75. 0...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 67 6f 6c 64 74 00 00 |.ustar |.goldt..|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 2f 2a 2d 0a 20 2a 20 43 | 6f 70 79 72 69 67 68 74 |/*-. * C|opyright|
|00000410| 20 28 63 29 20 31 39 39 | 30 20 54 68 65 20 52 65 | (c) 199|0 The Re|
|00000420| 67 65 6e 74 73 20 6f 66 | 20 74 68 65 20 55 6e 69 |gents of| the Uni|
|00000430| 76 65 72 73 69 74 79 20 | 6f 66 20 43 61 6c 69 66 |versity |of Calif|
|00000440| 6f 72 6e 69 61 0a 20 2a | 20 41 6c 6c 20 72 69 67 |ornia. *| All rig|
|00000450| 68 74 73 20 72 65 73 65 | 72 76 65 64 2e 0a 20 2a |hts rese|rved.. *|
|00000460| 0a 20 2a 20 52 65 64 69 | 73 74 72 69 62 75 74 69 |. * Redi|stributi|
|00000470| 6f 6e 20 61 6e 64 20 75 | 73 65 20 69 6e 20 73 6f |on and u|se in so|
|00000480| 75 72 63 65 20 61 6e 64 | 20 62 69 6e 61 72 79 20 |urce and| binary |
|00000490| 66 6f 72 6d 73 2c 20 77 | 69 74 68 20 6f 72 20 77 |forms, w|ith or w|
|000004a0| 69 74 68 6f 75 74 0a 20 | 2a 20 6d 6f 64 69 66 69 |ithout. |* modifi|
|000004b0| 63 61 74 69 6f 6e 2c 20 | 61 72 65 20 70 65 72 6d |cation, |are perm|
|000004c0| 69 74 74 65 64 20 70 72 | 6f 76 69 64 65 64 20 74 |itted pr|ovided t|
|000004d0| 68 61 74 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |hat the |followin|
|000004e0| 67 20 63 6f 6e 64 69 74 | 69 6f 6e 73 0a 20 2a 20 |g condit|ions. * |
|000004f0| 61 72 65 20 6d 65 74 3a | 0a 20 2a 20 31 2e 20 52 |are met:|. * 1. R|
|00000500| 65 64 69 73 74 72 69 62 | 75 74 69 6f 6e 73 20 6f |edistrib|utions o|
|00000510| 66 20 73 6f 75 72 63 65 | 20 63 6f 64 65 20 6d 75 |f source| code mu|
|00000520| 73 74 20 72 65 74 61 69 | 6e 20 74 68 65 20 61 62 |st retai|n the ab|
|00000530| 6f 76 65 20 63 6f 70 79 | 72 69 67 68 74 0a 20 2a |ove copy|right. *|
|00000540| 20 20 20 20 6e 6f 74 69 | 63 65 2c 20 74 68 69 73 | noti|ce, this|
|00000550| 20 6c 69 73 74 20 6f 66 | 20 63 6f 6e 64 69 74 69 | list of| conditi|
|00000560| 6f 6e 73 20 61 6e 64 20 | 74 68 65 20 66 6f 6c 6c |ons and |the foll|
|00000570| 6f 77 69 6e 67 20 64 69 | 73 63 6c 61 69 6d 65 72 |owing di|sclaimer|
|00000580| 2e 0a 20 2a 20 32 2e 20 | 52 65 64 69 73 74 72 69 |.. * 2. |Redistri|
|00000590| 62 75 74 69 6f 6e 73 20 | 69 6e 20 62 69 6e 61 72 |butions |in binar|
|000005a0| 79 20 66 6f 72 6d 20 6d | 75 73 74 20 72 65 70 72 |y form m|ust repr|
|000005b0| 6f 64 75 63 65 20 74 68 | 65 20 61 62 6f 76 65 20 |oduce th|e above |
|000005c0| 63 6f 70 79 72 69 67 68 | 74 0a 20 2a 20 20 20 20 |copyrigh|t. * |
|000005d0| 6e 6f 74 69 63 65 2c 20 | 74 68 69 73 20 6c 69 73 |notice, |this lis|
|000005e0| 74 20 6f 66 20 63 6f 6e | 64 69 74 69 6f 6e 73 20 |t of con|ditions |
|000005f0| 61 6e 64 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |and the |followin|
|00000600| 67 20 64 69 73 63 6c 61 | 69 6d 65 72 20 69 6e 20 |g discla|imer in |
|00000610| 74 68 65 0a 20 2a 20 20 | 20 20 64 6f 63 75 6d 65 |the. * | docume|
|00000620| 6e 74 61 74 69 6f 6e 20 | 61 6e 64 2f 6f 72 20 6f |ntation |and/or o|
|00000630| 74 68 65 72 20 6d 61 74 | 65 72 69 61 6c 73 20 70 |ther mat|erials p|
|00000640| 72 6f 76 69 64 65 64 20 | 77 69 74 68 20 74 68 65 |rovided |with the|
|00000650| 20 64 69 73 74 72 69 62 | 75 74 69 6f 6e 2e 0a 20 | distrib|ution.. |
|00000660| 2a 20 33 2e 20 41 6c 6c | 20 61 64 76 65 72 74 69 |* 3. All| adverti|
|00000670| 73 69 6e 67 20 6d 61 74 | 65 72 69 61 6c 73 20 6d |sing mat|erials m|
|00000680| 65 6e 74 69 6f 6e 69 6e | 67 20 66 65 61 74 75 72 |entionin|g featur|
|00000690| 65 73 20 6f 72 20 75 73 | 65 20 6f 66 20 74 68 69 |es or us|e of thi|
|000006a0| 73 20 73 6f 66 74 77 61 | 72 65 0a 20 2a 20 20 20 |s softwa|re. * |
|000006b0| 20 6d 75 73 74 20 64 69 | 73 70 6c 61 79 20 74 68 | must di|splay th|
|000006c0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 61 63 6b 6e |e follow|ing ackn|
|000006d0| 6f 77 6c 65 64 67 65 6d | 65 6e 74 3a 0a 20 2a 09 |owledgem|ent:. *.|
|000006e0| 54 68 69 73 20 70 72 6f | 64 75 63 74 20 69 6e 63 |This pro|duct inc|
|000006f0| 6c 75 64 65 73 20 73 6f | 66 74 77 61 72 65 20 64 |ludes so|ftware d|
|00000700| 65 76 65 6c 6f 70 65 64 | 20 62 79 20 74 68 65 20 |eveloped| by the |
|00000710| 55 6e 69 76 65 72 73 69 | 74 79 20 6f 66 0a 20 2a |Universi|ty of. *|
|00000720| 09 43 61 6c 69 66 6f 72 | 6e 69 61 2c 20 42 65 72 |.Califor|nia, Ber|
|00000730| 6b 65 6c 65 79 20 61 6e | 64 20 69 74 73 20 63 6f |keley an|d its co|
|00000740| 6e 74 72 69 62 75 74 6f | 72 73 2e 0a 20 2a 20 34 |ntributo|rs.. * 4|
|00000750| 2e 20 4e 65 69 74 68 65 | 72 20 74 68 65 20 6e 61 |. Neithe|r the na|
|00000760| 6d 65 20 6f 66 20 74 68 | 65 20 55 6e 69 76 65 72 |me of th|e Univer|
|00000770| 73 69 74 79 20 6e 6f 72 | 20 74 68 65 20 6e 61 6d |sity nor| the nam|
|00000780| 65 73 20 6f 66 20 69 74 | 73 20 63 6f 6e 74 72 69 |es of it|s contri|
|00000790| 62 75 74 6f 72 73 0a 20 | 2a 20 20 20 20 6d 61 79 |butors. |* may|
|000007a0| 20 62 65 20 75 73 65 64 | 20 74 6f 20 65 6e 64 6f | be used| to endo|
|000007b0| 72 73 65 20 6f 72 20 70 | 72 6f 6d 6f 74 65 20 70 |rse or p|romote p|
|000007c0| 72 6f 64 75 63 74 73 20 | 64 65 72 69 76 65 64 20 |roducts |derived |
|000007d0| 66 72 6f 6d 20 74 68 69 | 73 20 73 6f 66 74 77 61 |from thi|s softwa|
|000007e0| 72 65 0a 20 2a 20 20 20 | 20 77 69 74 68 6f 75 74 |re. * | without|
|000007f0| 20 73 70 65 63 69 66 69 | 63 20 70 72 69 6f 72 20 | specifi|c prior |
|00000800| 77 72 69 74 74 65 6e 20 | 70 65 72 6d 69 73 73 69 |written |permissi|
|00000810| 6f 6e 2e 0a 20 2a 0a 20 | 2a 20 54 48 49 53 20 53 |on.. *. |* THIS S|
|00000820| 4f 46 54 57 41 52 45 20 | 49 53 20 50 52 4f 56 49 |OFTWARE |IS PROVI|
|00000830| 44 45 44 20 42 59 20 54 | 48 45 20 52 45 47 45 4e |DED BY T|HE REGEN|
|00000840| 54 53 20 41 4e 44 20 43 | 4f 4e 54 52 49 42 55 54 |TS AND C|ONTRIBUT|
|00000850| 4f 52 53 20 60 60 41 53 | 20 49 53 27 27 20 41 4e |ORS ``AS| IS'' AN|
|00000860| 44 0a 20 2a 20 41 4e 59 | 20 45 58 50 52 45 53 53 |D. * ANY| EXPRESS|
|00000870| 20 4f 52 20 49 4d 50 4c | 49 45 44 20 57 41 52 52 | OR IMPL|IED WARR|
|00000880| 41 4e 54 49 45 53 2c 20 | 49 4e 43 4c 55 44 49 4e |ANTIES, |INCLUDIN|
|00000890| 47 2c 20 42 55 54 20 4e | 4f 54 20 4c 49 4d 49 54 |G, BUT N|OT LIMIT|
|000008a0| 45 44 20 54 4f 2c 20 54 | 48 45 0a 20 2a 20 49 4d |ED TO, T|HE. * IM|
|000008b0| 50 4c 49 45 44 20 57 41 | 52 52 41 4e 54 49 45 53 |PLIED WA|RRANTIES|
|000008c0| 20 4f 46 20 4d 45 52 43 | 48 41 4e 54 41 42 49 4c | OF MERC|HANTABIL|
|000008d0| 49 54 59 20 41 4e 44 20 | 46 49 54 4e 45 53 53 20 |ITY AND |FITNESS |
|000008e0| 46 4f 52 20 41 20 50 41 | 52 54 49 43 55 4c 41 52 |FOR A PA|RTICULAR|
|000008f0| 20 50 55 52 50 4f 53 45 | 0a 20 2a 20 41 52 45 20 | PURPOSE|. * ARE |
|00000900| 44 49 53 43 4c 41 49 4d | 45 44 2e 20 20 49 4e 20 |DISCLAIM|ED. IN |
|00000910| 4e 4f 20 45 56 45 4e 54 | 20 53 48 41 4c 4c 20 54 |NO EVENT| SHALL T|
|00000920| 48 45 20 52 45 47 45 4e | 54 53 20 4f 52 20 43 4f |HE REGEN|TS OR CO|
|00000930| 4e 54 52 49 42 55 54 4f | 52 53 20 42 45 20 4c 49 |NTRIBUTO|RS BE LI|
|00000940| 41 42 4c 45 0a 20 2a 20 | 46 4f 52 20 41 4e 59 20 |ABLE. * |FOR ANY |
|00000950| 44 49 52 45 43 54 2c 20 | 49 4e 44 49 52 45 43 54 |DIRECT, |INDIRECT|
|00000960| 2c 20 49 4e 43 49 44 45 | 4e 54 41 4c 2c 20 53 50 |, INCIDE|NTAL, SP|
|00000970| 45 43 49 41 4c 2c 20 45 | 58 45 4d 50 4c 41 52 59 |ECIAL, E|XEMPLARY|
|00000980| 2c 20 4f 52 20 43 4f 4e | 53 45 51 55 45 4e 54 49 |, OR CON|SEQUENTI|
|00000990| 41 4c 0a 20 2a 20 44 41 | 4d 41 47 45 53 20 28 49 |AL. * DA|MAGES (I|
|000009a0| 4e 43 4c 55 44 49 4e 47 | 2c 20 42 55 54 20 4e 4f |NCLUDING|, BUT NO|
|000009b0| 54 20 4c 49 4d 49 54 45 | 44 20 54 4f 2c 20 50 52 |T LIMITE|D TO, PR|
|000009c0| 4f 43 55 52 45 4d 45 4e | 54 20 4f 46 20 53 55 42 |OCUREMEN|T OF SUB|
|000009d0| 53 54 49 54 55 54 45 20 | 47 4f 4f 44 53 0a 20 2a |STITUTE |GOODS. *|
|000009e0| 20 4f 52 20 53 45 52 56 | 49 43 45 53 3b 20 4c 4f | OR SERV|ICES; LO|
|000009f0| 53 53 20 4f 46 20 55 53 | 45 2c 20 44 41 54 41 2c |SS OF US|E, DATA,|
|00000a00| 20 4f 52 20 50 52 4f 46 | 49 54 53 3b 20 4f 52 20 | OR PROF|ITS; OR |
|00000a10| 42 55 53 49 4e 45 53 53 | 20 49 4e 54 45 52 52 55 |BUSINESS| INTERRU|
|00000a20| 50 54 49 4f 4e 29 0a 20 | 2a 20 48 4f 57 45 56 45 |PTION). |* HOWEVE|
|00000a30| 52 20 43 41 55 53 45 44 | 20 41 4e 44 20 4f 4e 20 |R CAUSED| AND ON |
|00000a40| 41 4e 59 20 54 48 45 4f | 52 59 20 4f 46 20 4c 49 |ANY THEO|RY OF LI|
|00000a50| 41 42 49 4c 49 54 59 2c | 20 57 48 45 54 48 45 52 |ABILITY,| WHETHER|
|00000a60| 20 49 4e 20 43 4f 4e 54 | 52 41 43 54 2c 20 53 54 | IN CONT|RACT, ST|
|00000a70| 52 49 43 54 0a 20 2a 20 | 4c 49 41 42 49 4c 49 54 |RICT. * |LIABILIT|
|00000a80| 59 2c 20 4f 52 20 54 4f | 52 54 20 28 49 4e 43 4c |Y, OR TO|RT (INCL|
|00000a90| 55 44 49 4e 47 20 4e 45 | 47 4c 49 47 45 4e 43 45 |UDING NE|GLIGENCE|
|00000aa0| 20 4f 52 20 4f 54 48 45 | 52 57 49 53 45 29 20 41 | OR OTHE|RWISE) A|
|00000ab0| 52 49 53 49 4e 47 20 49 | 4e 20 41 4e 59 20 57 41 |RISING I|N ANY WA|
|00000ac0| 59 0a 20 2a 20 4f 55 54 | 20 4f 46 20 54 48 45 20 |Y. * OUT| OF THE |
|00000ad0| 55 53 45 20 4f 46 20 54 | 48 49 53 20 53 4f 46 54 |USE OF T|HIS SOFT|
|00000ae0| 57 41 52 45 2c 20 45 56 | 45 4e 20 49 46 20 41 44 |WARE, EV|EN IF AD|
|00000af0| 56 49 53 45 44 20 4f 46 | 20 54 48 45 20 50 4f 53 |VISED OF| THE POS|
|00000b00| 53 49 42 49 4c 49 54 59 | 20 4f 46 0a 20 2a 20 53 |SIBILITY| OF. * S|
|00000b10| 55 43 48 20 44 41 4d 41 | 47 45 2e 0a 20 2a 2f 0a |UCH DAMA|GE.. */.|
|00000b20| 0a 23 69 66 6e 64 65 66 | 20 6c 69 6e 74 0a 63 68 |.#ifndef| lint.ch|
|00000b30| 61 72 20 63 6f 70 79 72 | 69 67 68 74 5b 5d 20 3d |ar copyr|ight[] =|
|00000b40| 0a 22 40 28 23 29 20 43 | 6f 70 79 72 69 67 68 74 |."@(#) C|opyright|
|00000b50| 20 28 63 29 20 31 39 39 | 30 20 54 68 65 20 52 65 | (c) 199|0 The Re|
|00000b60| 67 65 6e 74 73 20 6f 66 | 20 74 68 65 20 55 6e 69 |gents of| the Uni|
|00000b70| 76 65 72 73 69 74 79 20 | 6f 66 20 43 61 6c 69 66 |versity |of Calif|
|00000b80| 6f 72 6e 69 61 2e 5c 6e | 5c 0a 20 41 6c 6c 20 72 |ornia.\n|\. All r|
|00000b90| 69 67 68 74 73 20 72 65 | 73 65 72 76 65 64 2e 5c |ights re|served.\|
|00000ba0| 6e 22 3b 0a 23 65 6e 64 | 69 66 20 2f 2a 20 6e 6f |n";.#end|if /* no|
|00000bb0| 74 20 6c 69 6e 74 20 2a | 2f 0a 0a 23 69 66 6e 64 |t lint *|/..#ifnd|
|00000bc0| 65 66 20 6c 69 6e 74 0a | 73 74 61 74 69 63 20 63 |ef lint.|static c|
|00000bd0| 68 61 72 20 72 63 73 69 | 64 5b 5d 20 3d 20 22 24 |har rcsi|d[] = "$|
|00000be0| 49 64 3a 20 73 6c 69 70 | 6c 6f 67 69 6e 2e 63 2c |Id: slip|login.c,|
|00000bf0| 76 20 31 2e 36 2e 31 20 | 31 39 39 35 2f 30 38 2f |v 1.6.1 |1995/08/|
|00000c00| 30 31 20 72 6f 6f 74 20 | 45 78 70 20 72 6f 6f 74 |01 root |Exp root|
|00000c10| 20 24 22 3b 0a 23 65 6e | 64 69 66 20 2f 2a 20 6e | $";.#en|dif /* n|
|00000c20| 6f 74 20 6c 69 6e 74 20 | 2a 2f 0a 0a 2f 2a 0a 20 |ot lint |*/../*. |
|00000c30| 2a 20 73 6c 69 70 6c 6f | 67 69 6e 2e 63 0a 20 2a |* sliplo|gin.c. *|
|00000c40| 20 5b 4d 55 53 54 20 42 | 45 20 52 55 4e 20 53 55 | [MUST B|E RUN SU|
|00000c50| 49 44 20 52 4f 4f 54 5d | 0a 20 2a 0a 20 2a 20 54 |ID ROOT]|. *. * T|
|00000c60| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 69 6e 69 74 |his prog|ram init|
|00000c70| 69 61 6c 69 7a 65 73 20 | 69 74 73 20 6f 77 6e 20 |ializes |its own |
|00000c80| 74 74 79 20 70 6f 72 74 | 20 74 6f 20 62 65 20 61 |tty port| to be a|
|00000c90| 6e 20 61 73 79 6e 63 20 | 54 43 50 2f 49 50 20 69 |n async |TCP/IP i|
|00000ca0| 6e 74 65 72 66 61 63 65 | 2e 0a 20 2a 20 49 74 20 |nterface|.. * It |
|00000cb0| 73 65 74 73 20 74 68 65 | 20 6c 69 6e 65 20 64 69 |sets the| line di|
|00000cc0| 73 63 69 70 6c 69 6e 65 | 20 74 6f 20 73 6c 69 70 |scipline| to slip|
|00000cd0| 2c 20 69 6e 76 6f 6b 65 | 73 20 61 20 73 68 65 6c |, invoke|s a shel|
|00000ce0| 6c 20 73 63 72 69 70 74 | 20 74 6f 20 69 6e 69 74 |l script| to init|
|00000cf0| 69 61 6c 69 7a 65 0a 20 | 2a 20 74 68 65 20 6e 65 |ialize. |* the ne|
|00000d00| 74 77 6f 72 6b 20 69 6e | 74 65 72 66 61 63 65 2c |twork in|terface,|
|00000d10| 20 74 68 65 6e 20 70 61 | 75 73 65 73 20 66 6f 72 | then pa|uses for|
|00000d20| 65 76 65 72 20 77 61 69 | 74 69 6e 67 20 66 6f 72 |ever wai|ting for|
|00000d30| 20 68 61 6e 67 75 70 2e | 0a 20 2a 0a 20 2a 20 49 | hangup.|. *. * I|
|00000d40| 74 20 69 73 20 61 20 72 | 65 6d 6f 74 65 20 64 65 |t is a r|emote de|
|00000d50| 73 63 65 6e 64 61 6e 74 | 20 6f 66 20 73 65 76 65 |scendant| of seve|
|00000d60| 72 61 6c 20 73 69 6d 69 | 6c 61 72 20 70 72 6f 67 |ral simi|lar prog|
|00000d70| 72 61 6d 73 20 77 69 74 | 68 20 69 6e 63 65 73 74 |rams wit|h incest|
|00000d80| 75 6f 75 73 20 74 69 65 | 73 3a 0a 20 2a 20 2d 20 |uous tie|s:. * - |
|00000d90| 4b 69 72 6b 20 53 6d 69 | 74 68 27 73 20 73 6c 69 |Kirk Smi|th's sli|
|00000da0| 70 63 6f 6e 66 2c 20 6d | 6f 64 69 66 69 65 64 20 |pconf, m|odified |
|00000db0| 62 79 20 52 69 63 68 61 | 72 64 20 4a 6f 68 6e 73 |by Richa|rd Johns|
|00000dc0| 73 6f 6e 20 40 20 44 45 | 43 20 57 52 4c 2e 0a 20 |son @ DE|C WRL.. |
|00000dd0| 2a 20 2d 20 73 6c 61 74 | 74 61 63 68 2c 20 70 72 |* - slat|tach, pr|
|00000de0| 6f 62 61 62 6c 79 20 62 | 79 20 52 69 63 6b 20 41 |obably b|y Rick A|
|00000df0| 64 61 6d 73 20 62 75 74 | 20 74 6f 75 63 68 65 64 |dams but| touched|
|00000e00| 20 62 79 20 63 6f 75 6e | 74 6c 65 73 73 20 68 6f | by coun|tless ho|
|00000e10| 72 64 65 73 2e 0a 20 2a | 20 2d 20 74 68 65 20 6f |rdes.. *| - the o|
|00000e20| 72 69 67 69 6e 61 6c 20 | 73 6c 69 70 6c 6f 67 69 |riginal |sliplogi|
|00000e30| 6e 20 66 6f 72 20 34 2e | 32 62 73 64 2c 20 44 6f |n for 4.|2bsd, Do|
|00000e40| 75 67 20 4b 69 6e 67 73 | 74 6f 6e 20 74 68 65 20 |ug Kings|ton the |
|00000e50| 6d 6f 76 65 72 20 62 65 | 68 69 6e 64 20 69 74 2e |mover be|hind it.|
|00000e60| 0a 20 2a 0a 20 2a 20 54 | 68 65 72 65 20 61 72 65 |. *. * T|here are|
|00000e70| 20 74 77 6f 20 66 6f 72 | 6d 73 20 6f 66 20 75 73 | two for|ms of us|
|00000e80| 61 67 65 3a 0a 20 2a 0a | 20 2a 20 22 73 6c 69 70 |age:. *.| * "slip|
|00000e90| 6c 6f 67 69 6e 22 0a 20 | 2a 20 49 6e 76 6f 6b 65 |login". |* Invoke|
|00000ea0| 64 20 73 69 6d 70 6c 79 | 20 61 73 20 22 73 6c 69 |d simply| as "sli|
|00000eb0| 70 6c 6f 67 69 6e 22 2c | 20 74 68 65 20 70 72 6f |plogin",| the pro|
|00000ec0| 67 72 61 6d 20 6c 6f 6f | 6b 73 20 75 70 20 74 68 |gram loo|ks up th|
|00000ed0| 65 20 75 73 65 72 6e 61 | 6d 65 0a 20 2a 20 69 6e |e userna|me. * in|
|00000ee0| 20 74 68 65 20 66 69 6c | 65 20 2f 65 74 63 2f 73 | the fil|e /etc/s|
|00000ef0| 6c 69 70 2e 68 6f 73 74 | 73 2e 0a 20 2a 20 49 66 |lip.host|s.. * If|
|00000f00| 20 61 6e 20 65 6e 74 72 | 79 20 69 73 20 66 6f 75 | an entr|y is fou|
|00000f10| 6e 64 2c 20 74 68 65 20 | 6c 69 6e 65 20 6f 6e 20 |nd, the |line on |
|00000f20| 66 64 30 20 69 73 20 63 | 6f 6e 66 69 67 75 72 65 |fd0 is c|onfigure|
|00000f30| 64 20 66 6f 72 20 53 4c | 49 50 20 6f 70 65 72 61 |d for SL|IP opera|
|00000f40| 74 69 6f 6e 0a 20 2a 20 | 61 73 20 73 70 65 63 69 |tion. * |as speci|
|00000f50| 66 69 65 64 20 69 6e 20 | 74 68 65 20 66 69 6c 65 |fied in |the file|
|00000f60| 2e 0a 20 2a 0a 20 2a 20 | 22 73 6c 69 70 6c 6f 67 |.. *. * |"sliplog|
|00000f70| 69 6e 20 73 6c 69 70 75 | 73 65 72 20 3c 20 2f 64 |in slipu|ser < /d|
|00000f80| 65 76 2f 74 74 79 62 22 | 0a 20 2a 20 49 6e 76 6f |ev/ttyb"|. * Invo|
|00000f90| 6b 65 64 20 62 79 20 72 | 6f 6f 74 20 77 69 74 68 |ked by r|oot with|
|00000fa0| 20 61 20 75 73 65 72 6e | 61 6d 65 2c 20 74 68 65 | a usern|ame, the|
|00000fb0| 20 6e 61 6d 65 20 69 73 | 20 6c 6f 6f 6b 65 64 20 | name is| looked |
|00000fc0| 75 70 20 69 6e 20 74 68 | 65 0a 20 2a 20 2f 65 74 |up in th|e. * /et|
|00000fd0| 63 2f 73 6c 69 70 2e 68 | 6f 73 74 73 20 66 69 6c |c/slip.h|osts fil|
|00000fe0| 65 20 61 6e 64 20 69 66 | 20 66 6f 75 6e 64 20 66 |e and if| found f|
|00000ff0| 64 30 20 69 73 20 63 6f | 6e 66 69 67 75 72 65 64 |d0 is co|nfigured|
|00001000| 20 61 73 20 69 6e 20 63 | 61 73 65 20 31 2e 0a 20 | as in c|ase 1.. |
|00001010| 2a 2f 0a 0a 23 64 65 66 | 69 6e 65 20 5f 50 4f 53 |*/..#def|ine _POS|
|00001020| 49 58 5f 53 4f 55 52 43 | 45 20 31 0a 23 69 6e 63 |IX_SOURC|E 1.#inc|
|00001030| 6c 75 64 65 20 3c 73 79 | 73 2f 74 79 70 65 73 2e |lude <sy|s/types.|
|00001040| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 74 64 |h>.#incl|ude <std|
|00001050| 6c 69 62 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |lib.h>.#|include |
|00001060| 3c 73 79 73 2f 70 61 72 | 61 6d 2e 68 3e 0a 23 69 |<sys/par|am.h>.#i|
|00001070| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 73 6f 63 6b |nclude <|sys/sock|
|00001080| 65 74 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |et.h>.#i|nclude <|
|00001090| 73 79 73 2f 73 69 67 6e | 61 6c 2e 68 3e 0a 23 69 |sys/sign|al.h>.#i|
|000010a0| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 66 69 6c 65 |nclude <|sys/file|
|000010b0| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 79 |.h>.#inc|lude <sy|
|000010c0| 73 2f 73 79 73 6c 6f 67 | 2e 68 3e 0a 23 69 6e 63 |s/syslog|.h>.#inc|
|000010d0| 6c 75 64 65 20 3c 6e 65 | 74 64 62 2e 68 3e 0a 23 |lude <ne|tdb.h>.#|
|000010e0| 69 6e 63 6c 75 64 65 20 | 3c 70 77 64 2e 68 3e 0a |include |<pwd.h>.|
|000010f0| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 73 74 |#include| <sys/st|
|00001100| 61 74 2e 68 3e 0a 0a 23 | 69 6e 63 6c 75 64 65 20 |at.h>..#|include |
|00001110| 3c 73 79 73 2f 74 65 72 | 6d 69 6f 73 2e 68 3e 0a |<sys/ter|mios.h>.|
|00001120| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 69 6f |#include| <sys/io|
|00001130| 63 74 6c 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |ctl.h>.#|include |
|00001140| 3c 6e 65 74 69 6e 65 74 | 2f 69 6e 2e 68 3e 0a 23 |<netinet|/in.h>.#|
|00001150| 69 6e 63 6c 75 64 65 20 | 3c 6e 65 74 2f 69 66 2e |include |<net/if.|
|00001160| 68 3e 0a 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |h>..#inc|lude <st|
|00001170| 64 69 6f 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |dio.h>.#|include |
|00001180| 3c 65 72 72 6e 6f 2e 68 | 3e 0a 23 69 6e 63 6c 75 |<errno.h|>.#inclu|
|00001190| 64 65 20 3c 63 74 79 70 | 65 2e 68 3e 0a 23 69 6e |de <ctyp|e.h>.#in|
|000011a0| 63 6c 75 64 65 20 3c 73 | 74 72 69 6e 67 2e 68 3e |clude <s|tring.h>|
|000011b0| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 75 6e 69 73 74 |.#includ|e <unist|
|000011c0| 64 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 22 70 |d.h>.#in|clude "p|
|000011d0| 61 74 68 6e 61 6d 65 73 | 2e 68 22 0a 0a 23 69 66 |athnames|.h"..#if|
|000011e0| 6e 64 65 66 20 4e 5f 53 | 4c 49 50 0a 23 64 65 66 |ndef N_S|LIP.#def|
|000011f0| 69 6e 65 20 4e 5f 53 4c | 49 50 20 53 4c 49 50 44 |ine N_SL|IP SLIPD|
|00001200| 49 53 43 20 2f 2a 20 73 | 6c 69 70 20 6c 69 6e 65 |ISC /* s|lip line|
|00001210| 20 64 69 73 63 69 70 6c | 69 6e 65 20 2a 2f 0a 23 | discipl|ine */.#|
|00001220| 65 6e 64 69 66 0a 0a 0a | 69 6e 74 09 73 6c 69 70 |endif...|int.slip|
|00001230| 5f 6d 6f 64 65 3b 0a 69 | 6e 74 09 6c 69 6e 65 73 |_mode;.i|nt.lines|
|00001240| 70 65 65 64 3b 0a 69 6e | 74 09 75 69 64 3b 0a 63 |peed;.in|t.uid;.c|
|00001250| 68 61 72 20 6c 6f 67 69 | 6e 61 72 67 73 5b 42 55 |har logi|nargs[BU|
|00001260| 46 53 49 5a 5d 3b 0a 63 | 68 61 72 20 6c 6f 67 69 |FSIZ];.c|har logi|
|00001270| 6e 66 69 6c 65 5b 4d 41 | 58 50 41 54 48 4c 45 4e |nfile[MA|XPATHLEN|
|00001280| 5d 3b 0a 63 68 61 72 20 | 6c 6f 67 69 6e 6e 61 6d |];.char |loginnam|
|00001290| 65 5b 42 55 46 53 49 5a | 5d 3b 0a 63 68 61 72 20 |e[BUFSIZ|];.char |
|000012a0| 73 6c 6f 70 74 5b 35 5d | 5b 31 36 5d 3b 0a 63 68 |slopt[5]|[16];.ch|
|000012b0| 61 72 20 6c 61 64 64 72 | 5b 31 36 5d 3b 0a 63 68 |ar laddr|[16];.ch|
|000012c0| 61 72 20 72 61 64 64 72 | 5b 31 36 5d 3b 0a 63 68 |ar raddr|[16];.ch|
|000012d0| 61 72 20 75 6e 69 74 5b | 33 32 5d 3b 0a 76 6f 6c |ar unit[|32];.vol|
|000012e0| 61 74 69 6c 65 20 69 6e | 74 20 48 55 50 3d 2d 31 |atile in|t HUP=-1|
|000012f0| 3b 0a 0a 73 74 72 75 63 | 74 20 73 6c 69 70 5f 6d |;..struc|t slip_m|
|00001300| 6f 64 65 73 20 7b 0a 09 | 63 68 61 72 20 2a 73 6d |odes {..|char *sm|
|00001310| 5f 6e 61 6d 65 3b 0a 09 | 69 6e 74 09 73 6d 5f 76 |_name;..|int.sm_v|
|00001320| 61 6c 75 65 3b 0a 7d 09 | 20 6d 6f 64 65 73 5b 5d |alue;.}.| modes[]|
|00001330| 20 3d 20 7b 0a 09 22 6e | 6f 72 6d 61 6c 22 2c 09 | = {.."n|ormal",.|
|00001340| 09 30 2c 09 2f 2a 20 53 | 4c 5f 4d 4f 44 45 5f 53 |.0,./* S|L_MODE_S|
|00001350| 4c 49 50 20 2a 2f 0a 09 | 22 63 6f 6d 70 72 65 73 |LIP */..|"compres|
|00001360| 73 65 64 22 2c 09 31 2c | 09 2f 2a 20 53 4c 5f 4d |sed",.1,|./* SL_M|
|00001370| 4f 44 45 5f 43 53 4c 49 | 50 20 2a 2f 0a 09 22 36 |ODE_CSLI|P */.."6|
|00001380| 62 69 74 22 2c 09 09 09 | 32 2c 09 2f 2a 20 53 4c |bit",...|2,./* SL|
|00001390| 5f 4d 4f 44 45 5f 53 4c | 49 50 36 2c 20 70 72 69 |_MODE_SL|IP6, pri|
|000013a0| 6e 74 61 62 6c 65 20 73 | 6c 69 70 20 2a 2f 0a 09 |ntable s|lip */..|
|000013b0| 22 61 78 32 35 22 2c 09 | 09 09 34 2c 09 2f 2a 20 |"ax25",.|..4,./* |
|000013c0| 53 4c 5f 4d 4f 44 45 5f | 41 58 32 35 20 2a 2f 0a |SL_MODE_|AX25 */.|
|000013d0| 09 22 61 75 74 6f 22 2c | 09 09 09 38 09 2f 2a 20 |."auto",|...8./* |
|000013e0| 53 4c 5f 4d 4f 44 45 5f | 41 44 41 50 54 49 56 45 |SL_MODE_|ADAPTIVE|
|000013f0| 20 2a 2f 0a 7d 3b 0a 0a | 0a 2f 2a 20 50 4f 53 49 | */.};..|./* POSI|
|00001400| 58 20 73 75 78 20 21 20 | 57 68 61 74 20 63 6f 6d |X sux ! |What com|
|00001410| 65 73 20 6e 65 78 74 20 | 3f 20 46 6f 72 63 65 6d |es next |? Forcem|
|00001420| 65 6e 74 20 74 6f 20 63 | 72 65 61 74 65 20 79 6f |ent to c|reate yo|
|00001430| 75 72 20 6f 77 6e 0a 20 | 20 20 65 72 72 6f 72 20 |ur own. | error |
|00001440| 74 61 62 6c 65 20 3f 20 | 52 65 77 72 69 74 65 20 |table ? |Rewrite |
|00001450| 79 6f 75 72 20 70 72 6f | 67 72 61 6d 73 20 77 68 |your pro|grams wh|
|00001460| 65 6e 20 68 69 67 68 65 | 72 20 62 61 75 64 72 61 |en highe|r baudra|
|00001470| 74 65 73 0a 20 20 20 67 | 65 74 20 61 64 64 65 64 |tes. g|et added|
|00001480| 20 3f 20 2a 2f 0a 73 74 | 72 75 63 74 20 73 70 65 | ? */.st|ruct spe|
|00001490| 65 64 74 61 62 20 7b 0a | 20 20 20 73 70 65 65 64 |edtab {.| speed|
|000014a0| 5f 74 20 73 79 6d 62 6f | 6c 3b 0a 20 20 20 69 6e |_t symbo|l;. in|
|000014b0| 74 20 72 65 61 6c 3b 20 | 0a 7d 20 73 70 65 65 64 |t real; |.} speed|
|000014c0| 73 5b 5d 20 3d 20 7b 0a | 23 69 66 64 65 66 20 42 |s[] = {.|#ifdef B|
|000014d0| 35 30 0a 20 20 20 20 7b | 20 42 35 30 2c 20 35 30 |50. {| B50, 50|
|000014e0| 20 7d 2c 0a 23 65 6e 64 | 69 66 0a 23 69 66 64 65 | },.#end|if.#ifde|
|000014f0| 66 20 42 37 35 0a 20 20 | 20 20 7b 20 42 37 35 2c |f B75. | { B75,|
|00001500| 20 37 35 20 7d 2c 0a 23 | 65 6e 64 69 66 0a 23 69 | 75 },.#|endif.#i|
|00001510| 66 64 65 66 20 42 31 31 | 30 0a 20 20 20 20 7b 20 |fdef B11|0. { |
|00001520| 42 31 31 30 2c 20 31 31 | 30 20 7d 2c 0a 23 65 6e |B110, 11|0 },.#en|
|00001530| 64 69 66 0a 23 69 66 64 | 65 66 20 42 31 33 34 0a |dif.#ifd|ef B134.|
|00001540| 20 20 20 20 7b 20 42 31 | 33 34 2c 20 31 33 34 20 | { B1|34, 134 |
|00001550| 7d 2c 0a 23 65 6e 64 69 | 66 0a 23 69 66 64 65 66 |},.#endi|f.#ifdef|
|00001560| 20 42 31 35 30 0a 20 20 | 20 20 7b 20 42 31 35 30 | B150. | { B150|
|00001570| 2c 20 31 35 30 20 7d 2c | 0a 23 65 6e 64 69 66 0a |, 150 },|.#endif.|
|00001580| 23 69 66 64 65 66 20 42 | 32 30 30 0a 20 20 20 20 |#ifdef B|200. |
|00001590| 7b 20 42 32 30 30 2c 20 | 32 30 30 20 7d 2c 0a 23 |{ B200, |200 },.#|
|000015a0| 65 6e 64 69 66 0a 23 69 | 66 64 65 66 20 42 33 30 |endif.#i|fdef B30|
|000015b0| 30 0a 20 20 20 20 7b 20 | 42 33 30 30 2c 20 33 30 |0. { |B300, 30|
|000015c0| 30 20 7d 2c 0a 23 65 6e | 64 69 66 0a 23 69 66 64 |0 },.#en|dif.#ifd|
|000015d0| 65 66 20 42 36 30 30 0a | 20 20 20 20 7b 20 42 36 |ef B600.| { B6|
|000015e0| 30 30 2c 20 36 30 30 20 | 7d 2c 0a 23 65 6e 64 69 |00, 600 |},.#endi|
|000015f0| 66 0a 23 69 66 64 65 66 | 20 42 31 32 30 30 0a 20 |f.#ifdef| B1200. |
|00001600| 20 20 20 7b 20 42 31 32 | 30 30 2c 20 31 32 30 30 | { B12|00, 1200|
|00001610| 20 7d 2c 0a 23 65 6e 64 | 69 66 0a 23 69 66 64 65 | },.#end|if.#ifde|
|00001620| 66 20 42 31 38 30 30 0a | 20 20 20 20 7b 20 42 31 |f B1800.| { B1|
|00001630| 38 30 30 2c 20 31 38 30 | 30 20 7d 2c 0a 23 65 6e |800, 180|0 },.#en|
|00001640| 64 69 66 0a 23 69 66 64 | 65 66 20 42 32 30 30 30 |dif.#ifd|ef B2000|
|00001650| 0a 20 20 20 20 7b 20 42 | 32 30 30 30 2c 20 32 30 |. { B|2000, 20|
|00001660| 30 30 20 7d 2c 0a 23 65 | 6e 64 69 66 0a 23 69 66 |00 },.#e|ndif.#if|
|00001670| 64 65 66 20 42 32 34 30 | 30 0a 20 20 20 20 7b 20 |def B240|0. { |
|00001680| 42 32 34 30 30 2c 20 32 | 34 30 30 20 7d 2c 0a 23 |B2400, 2|400 },.#|
|00001690| 65 6e 64 69 66 0a 23 69 | 66 64 65 66 20 42 33 36 |endif.#i|fdef B36|
|000016a0| 30 30 0a 20 20 20 20 7b | 20 42 33 36 30 30 2c 20 |00. {| B3600, |
|000016b0| 33 36 30 30 20 7d 2c 0a | 23 65 6e 64 69 66 0a 23 |3600 },.|#endif.#|
|000016c0| 69 66 64 65 66 20 42 34 | 38 30 30 0a 20 20 20 20 |ifdef B4|800. |
|000016d0| 7b 20 42 34 38 30 30 2c | 20 34 38 30 30 20 7d 2c |{ B4800,| 4800 },|
|000016e0| 0a 23 65 6e 64 69 66 0a | 23 69 66 64 65 66 20 42 |.#endif.|#ifdef B|
|000016f0| 37 32 30 30 0a 20 20 20 | 20 7b 20 42 37 32 30 30 |7200. | { B7200|
|00001700| 2c 20 37 32 30 30 20 7d | 2c 0a 23 65 6e 64 69 66 |, 7200 }|,.#endif|
|00001710| 0a 23 69 66 64 65 66 20 | 42 39 36 30 30 0a 20 20 |.#ifdef |B9600. |
|00001720| 20 20 7b 20 42 39 36 30 | 30 2c 20 39 36 30 30 20 | { B960|0, 9600 |
|00001730| 7d 2c 0a 23 65 6e 64 69 | 66 0a 23 69 66 64 65 66 |},.#endi|f.#ifdef|
|00001740| 20 42 31 39 32 30 30 0a | 20 20 20 20 7b 20 42 31 | B19200.| { B1|
|00001750| 39 32 30 30 2c 20 31 39 | 32 30 30 20 7d 2c 0a 23 |9200, 19|200 },.#|
|00001760| 65 6e 64 69 66 0a 23 69 | 66 64 65 66 20 42 33 38 |endif.#i|fdef B38|
|00001770| 34 30 30 0a 20 20 20 20 | 7b 20 42 33 38 34 30 30 |400. |{ B38400|
|00001780| 2c 20 33 38 34 30 30 20 | 7d 2c 0a 23 65 6e 64 69 |, 38400 |},.#endi|
|00001790| 66 0a 23 69 66 64 65 66 | 20 45 58 54 41 0a 20 20 |f.#ifdef| EXTA. |
|000017a0| 20 20 7b 20 45 58 54 41 | 2c 20 31 39 32 30 30 20 | { EXTA|, 19200 |
|000017b0| 7d 2c 0a 23 65 6e 64 69 | 66 0a 23 69 66 64 65 66 |},.#endi|f.#ifdef|
|000017c0| 20 45 58 54 42 0a 20 20 | 20 20 7b 20 45 58 54 42 | EXTB. | { EXTB|
|000017d0| 20 2c 20 33 38 34 30 30 | 20 7d 2c 0a 23 65 6e 64 | , 38400| },.#end|
|000017e0| 69 66 0a 23 69 66 64 65 | 66 20 42 35 37 36 30 30 |if.#ifde|f B57600|
|000017f0| 0a 20 20 20 20 7b 20 42 | 35 37 36 30 30 2c 20 35 |. { B|57600, 5|
|00001800| 37 36 30 30 20 7d 2c 0a | 23 65 6e 64 69 66 0a 23 |7600 },.|#endif.#|
|00001810| 69 66 64 65 66 20 42 31 | 31 35 32 30 30 0a 20 20 |ifdef B1|15200. |
|00001820| 20 20 7b 20 42 31 31 35 | 32 30 30 2c 20 31 31 35 | { B115|200, 115|
|00001830| 32 30 30 20 7d 2c 0a 23 | 65 6e 64 69 66 0a 20 20 |200 },.#|endif. |
|00001840| 20 20 7b 20 30 2c 20 30 | 20 7d 0a 7d 3b 0a 0a 69 | { 0, 0| }.};..i|
|00001850| 6e 74 20 74 72 61 6e 73 | 6c 61 74 65 5f 73 70 65 |nt trans|late_spe|
|00001860| 65 64 28 73 70 65 65 64 | 5f 74 20 73 70 65 65 64 |ed(speed|_t speed|
|00001870| 29 0a 7b 0a 73 74 72 75 | 63 74 20 73 70 65 65 64 |).{.stru|ct speed|
|00001880| 74 61 62 20 2a 70 74 72 | 3b 0a 0a 66 6f 72 20 28 |tab *ptr|;..for (|
|00001890| 70 74 72 3d 73 70 65 65 | 64 73 3b 20 70 74 72 2d |ptr=spee|ds; ptr-|
|000018a0| 3e 72 65 61 6c 20 21 3d | 20 30 3b 20 70 74 72 2b |>real !=| 0; ptr+|
|000018b0| 2b 29 0a 20 69 66 20 28 | 73 70 65 65 64 20 3d 3d |+). if (|speed ==|
|000018c0| 20 70 74 72 2d 3e 73 79 | 6d 62 6f 6c 29 20 72 65 | ptr->sy|mbol) re|
|000018d0| 74 75 72 6e 28 70 74 72 | 2d 3e 72 65 61 6c 29 3b |turn(ptr|->real);|
|000018e0| 0a 72 65 74 75 72 6e 20 | 28 30 29 3b 0a 7d 0a 0a |.return |(0);.}..|
|000018f0| 76 6f 69 64 20 66 69 6e | 64 69 64 28 63 68 61 72 |void fin|did(char|
|00001900| 20 2a 6e 61 6d 65 29 0a | 7b 0a 09 46 49 4c 45 20 | *name).|{..FILE |
|00001910| 2a 66 70 3b 0a 09 73 74 | 61 74 69 63 20 63 68 61 |*fp;..st|atic cha|
|00001920| 72 20 6d 61 73 6b 5b 31 | 36 5d 3b 0a 09 63 68 61 |r mask[1|6];..cha|
|00001930| 72 20 75 73 65 72 5b 31 | 36 5d 3b 0a 09 69 6e 74 |r user[1|6];..int|
|00001940| 20 69 2c 20 6a 2c 20 6e | 3b 0a 0a 09 73 74 72 63 | i, j, n|;...strc|
|00001950| 70 79 28 6c 6f 67 69 6e | 6e 61 6d 65 2c 20 6e 61 |py(login|name, na|
|00001960| 6d 65 29 3b 0a 09 69 66 | 20 28 28 66 70 20 3d 20 |me);..if| ((fp = |
|00001970| 66 6f 70 65 6e 28 5f 50 | 41 54 48 5f 41 43 43 45 |fopen(_P|ATH_ACCE|
|00001980| 53 53 2c 20 22 72 22 29 | 29 20 3d 3d 20 4e 55 4c |SS, "r")|) == NUL|
|00001990| 4c 29 0a 09 7b 0a 09 20 | 66 70 72 69 6e 74 66 28 |L)..{.. |fprintf(|
|000019a0| 73 74 64 65 72 72 2c 22 | 73 6c 69 70 6c 6f 67 69 |stderr,"|sliplogi|
|000019b0| 6e 3a 20 25 73 3a 20 25 | 73 5c 6e 22 2c 20 5f 50 |n: %s: %|s\n", _P|
|000019c0| 41 54 48 5f 41 43 43 45 | 53 53 2c 20 73 74 72 65 |ATH_ACCE|SS, stre|
|000019d0| 72 72 6f 72 28 65 72 72 | 6e 6f 29 29 3b 0a 09 20 |rror(err|no));.. |
|000019e0| 73 79 73 6c 6f 67 28 4c | 4f 47 5f 45 52 52 2c 20 |syslog(L|OG_ERR, |
|000019f0| 22 25 73 3a 20 25 6d 5c | 6e 22 2c 20 5f 50 41 54 |"%s: %m\|n", _PAT|
|00001a00| 48 5f 41 43 43 45 53 53 | 29 3b 0a 09 20 65 78 69 |H_ACCESS|);.. exi|
|00001a10| 74 28 31 29 3b 0a 09 7d | 0a 09 77 68 69 6c 65 20 |t(1);..}|..while |
|00001a20| 28 66 67 65 74 73 28 6c | 6f 67 69 6e 61 72 67 73 |(fgets(l|oginargs|
|00001a30| 2c 20 73 69 7a 65 6f 66 | 28 6c 6f 67 69 6e 61 72 |, sizeof|(loginar|
|00001a40| 67 73 29 20 2d 20 31 2c | 20 66 70 29 29 0a 09 7b |gs) - 1,| fp))..{|
|00001a50| 0a 09 20 69 66 20 28 66 | 65 72 72 6f 72 28 66 70 |.. if (f|error(fp|
|00001a60| 29 29 20 62 72 65 61 6b | 3b 0a 09 20 69 66 20 28 |)) break|;.. if (|
|00001a70| 6c 6f 67 69 6e 61 72 67 | 73 5b 30 5d 3d 3d 27 23 |loginarg|s[0]=='#|
|00001a80| 27 29 20 63 6f 6e 74 69 | 6e 75 65 3b 0a 09 20 6e |') conti|nue;.. n|
|00001a90| 20 3d 20 73 73 63 61 6e | 66 28 6c 6f 67 69 6e 61 | = sscan|f(logina|
|00001aa0| 72 67 73 2c 20 22 25 31 | 35 73 25 31 35 73 25 31 |rgs, "%1|5s%15s%1|
|00001ab0| 35 73 25 31 35 73 25 31 | 35 73 25 31 35 73 25 31 |5s%15s%1|5s%15s%1|
|00001ac0| 35 73 25 31 35 73 25 31 | 35 73 22 2c 0a 09 09 09 |5s%15s%1|5s",....|
|00001ad0| 09 09 09 75 73 65 72 2c | 20 6c 61 64 64 72 2c 20 |...user,| laddr, |
|00001ae0| 72 61 64 64 72 2c 20 6d | 61 73 6b 2c 20 73 6c 6f |raddr, m|ask, slo|
|00001af0| 70 74 5b 30 5d 2c 20 73 | 6c 6f 70 74 5b 31 5d 2c |pt[0], s|lopt[1],|
|00001b00| 20 0a 09 09 09 09 09 09 | 73 6c 6f 70 74 5b 32 5d | .......|slopt[2]|
|00001b10| 2c 20 73 6c 6f 70 74 5b | 33 5d 2c 20 73 6c 6f 70 |, slopt[|3], slop|
|00001b20| 74 5b 34 5d 29 3b 0a 09 | 20 69 66 20 28 20 28 73 |t[4]);..| if ( (s|
|00001b30| 74 72 63 6d 70 28 75 73 | 65 72 2c 20 6e 61 6d 65 |trcmp(us|er, name|
|00001b40| 29 20 21 3d 20 30 29 20 | 26 26 20 73 74 72 63 6d |) != 0) |&& strcm|
|00001b50| 70 28 75 73 65 72 2c 20 | 22 2a 22 29 20 21 3d 20 |p(user, |"*") != |
|00001b60| 30 29 20 63 6f 6e 74 69 | 6e 75 65 3b 0a 09 20 66 |0) conti|nue;.. f|
|00001b70| 63 6c 6f 73 65 28 66 70 | 29 3b 0a 09 20 2f 2a 20 |close(fp|);.. /* |
|00001b80| 46 6f 75 6e 64 20 75 73 | 65 72 20 2d 20 6e 6f 77 |Found us|er - now|
|00001b90| 20 63 68 65 63 6b 20 66 | 6f 72 20 64 79 6e 61 6d | check f|or dynam|
|00001ba0| 69 63 20 49 50 20 61 73 | 73 69 67 6e 69 6e 67 20 |ic IP as|signing |
|00001bb0| 2a 2f 0a 09 20 69 66 20 | 28 73 74 72 63 6d 70 28 |*/.. if |(strcmp(|
|00001bc0| 72 61 64 64 72 2c 20 22 | 44 59 4e 41 4d 49 43 22 |raddr, "|DYNAMIC"|
|00001bd0| 29 3d 3d 30 29 0a 09 20 | 7b 0a 09 20 20 63 68 61 |)==0).. |{.. cha|
|00001be0| 72 20 2a 74 74 79 6e 2c | 73 6c 69 70 74 74 79 5b |r *ttyn,|sliptty[|
|00001bf0| 32 30 5d 2c 64 79 6e 61 | 6d 69 63 5b 38 30 5d 3b |20],dyna|mic[80];|
|00001c00| 0a 09 20 20 74 74 79 6e | 3d 74 74 79 6e 61 6d 65 |.. ttyn|=ttyname|
|00001c10| 28 30 29 3b 0a 20 20 20 | 20 20 20 69 66 20 28 28 |(0);. | if ((|
|00001c20| 66 70 20 3d 20 66 6f 70 | 65 6e 28 5f 50 41 54 48 |fp = fop|en(_PATH|
|00001c30| 5f 53 4c 49 50 54 54 59 | 2c 20 22 72 22 29 29 20 |_SLIPTTY|, "r")) |
|00001c40| 3d 3d 20 4e 55 4c 4c 29 | 0a 09 20 20 7b 0a 09 09 |== NULL)|.. {...|
|00001c50| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 22 |fprintf(|stderr,"|
|00001c60| 73 6c 69 70 6c 6f 67 69 | 6e 3a 20 25 73 3a 20 25 |sliplogi|n: %s: %|
|00001c70| 73 5c 6e 22 2c 20 5f 50 | 41 54 48 5f 53 4c 49 50 |s\n", _P|ATH_SLIP|
|00001c80| 54 54 59 2c 20 73 74 72 | 65 72 72 6f 72 28 65 72 |TTY, str|error(er|
|00001c90| 72 6e 6f 29 29 3b 0a 09 | 09 73 79 73 6c 6f 67 28 |rno));..|.syslog(|
|00001ca0| 4c 4f 47 5f 45 52 52 2c | 20 22 25 73 3a 20 25 6d |LOG_ERR,| "%s: %m|
|00001cb0| 5c 6e 22 2c 20 5f 50 41 | 54 48 5f 53 4c 49 50 54 |\n", _PA|TH_SLIPT|
|00001cc0| 54 59 29 3b 0a 09 09 65 | 78 69 74 28 31 29 3b 0a |TY);...e|xit(1);.|
|00001cd0| 09 20 20 7d 0a 09 20 20 | 77 68 69 6c 65 20 28 66 |. }.. |while (f|
|00001ce0| 67 65 74 73 28 64 79 6e | 61 6d 69 63 2c 20 37 39 |gets(dyn|amic, 79|
|00001cf0| 2c 20 66 70 29 29 0a 09 | 20 20 7b 0a 09 09 69 66 |, fp))..| {...if|
|00001d00| 20 28 66 65 72 72 6f 72 | 28 66 70 29 29 20 62 72 | (ferror|(fp)) br|
|00001d10| 65 61 6b 3b 0a 09 09 69 | 66 20 28 64 79 6e 61 6d |eak;...i|f (dynam|
|00001d20| 69 63 5b 30 5d 3d 3d 27 | 23 27 29 20 63 6f 6e 74 |ic[0]=='|#') cont|
|00001d30| 69 6e 75 65 3b 0a 09 09 | 73 73 63 61 6e 66 28 64 |inue;...|sscanf(d|
|00001d40| 79 6e 61 6d 69 63 2c 20 | 22 25 31 35 73 25 31 35 |ynamic, |"%15s%15|
|00001d50| 73 22 2c 20 73 6c 69 70 | 74 74 79 2c 72 61 64 64 |s", slip|tty,radd|
|00001d60| 72 29 3b 0a 09 09 69 66 | 20 28 73 74 72 63 6d 70 |r);...if| (strcmp|
|00001d70| 28 74 74 79 6e 2c 20 73 | 6c 69 70 74 74 79 29 20 |(ttyn, s|liptty) |
|00001d80| 21 3d 20 30 29 20 63 6f | 6e 74 69 6e 75 65 3b 0a |!= 0) co|ntinue;.|
|00001d90| 09 09 66 63 6c 6f 73 65 | 28 66 70 29 3b 0a 09 09 |..fclose|(fp);...|
|00001da0| 66 70 3d 4e 55 4c 4c 3b | 0a 09 09 62 72 65 61 6b |fp=NULL;|...break|
|00001db0| 3b 0a 09 20 20 7d 0a 09 | 20 20 69 66 20 28 66 70 |;.. }..| if (fp|
|00001dc0| 21 3d 4e 55 4c 4c 29 0a | 09 20 20 7b 0a 09 09 66 |!=NULL).|. {...f|
|00001dd0| 63 6c 6f 73 65 28 66 70 | 29 3b 0a 09 09 66 70 72 |close(fp|);...fpr|
|00001de0| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 22 73 6c 69 |intf(std|err,"sli|
|00001df0| 70 6c 6f 67 69 6e 3a 20 | 25 73 20 6e 6f 74 20 66 |plogin: |%s not f|
|00001e00| 6f 75 6e 64 20 69 6e 20 | 25 73 5c 6e 22 2c 20 74 |ound in |%s\n", t|
|00001e10| 74 79 6e 2c 5f 50 41 54 | 48 5f 53 4c 49 50 54 54 |tyn,_PAT|H_SLIPTT|
|00001e20| 59 29 3b 0a 09 09 73 79 | 73 6c 6f 67 28 4c 4f 47 |Y);...sy|slog(LOG|
|00001e30| 5f 45 52 52 2c 22 25 73 | 20 6e 6f 74 20 66 6f 75 |_ERR,"%s| not fou|
|00001e40| 6e 64 20 69 6e 20 25 73 | 5c 6e 22 2c 74 74 79 6e |nd in %s|\n",ttyn|
|00001e50| 2c 5f 50 41 54 48 5f 53 | 4c 49 50 54 54 59 29 3b |,_PATH_S|LIPTTY);|
|00001e60| 0a 09 09 73 79 73 6c 6f | 67 28 4c 4f 47 5f 45 52 |...syslo|g(LOG_ER|
|00001e70| 52 2c 22 43 6f 75 6c 64 | 6e 27 74 20 73 74 61 72 |R,"Could|n't star|
|00001e80| 74 20 73 6c 69 70 20 73 | 65 73 73 69 6f 6e 20 66 |t slip s|ession f|
|00001e90| 6f 72 20 25 73 5c 6e 22 | 2c 6e 61 6d 65 29 3b 0a |or %s\n"|,name);.|
|00001ea0| 09 09 65 78 69 74 28 2d | 31 29 3b 0a 09 20 20 7d |..exit(-|1);.. }|
|00001eb0| 0a 09 20 20 73 70 72 69 | 6e 74 66 28 6c 6f 67 69 |.. spri|ntf(logi|
|00001ec0| 6e 61 72 67 73 2c 20 22 | 25 73 20 25 73 20 25 73 |nargs, "|%s %s %s|
|00001ed0| 20 25 73 20 25 73 20 25 | 73 20 25 73 20 25 73 20 | %s %s %|s %s %s |
|00001ee0| 25 73 22 2c 20 75 73 65 | 72 2c 20 6c 61 64 64 72 |%s", use|r, laddr|
|00001ef0| 2c 20 72 61 64 64 72 2c | 0a 09 09 09 09 6d 61 73 |, raddr,|.....mas|
|00001f00| 6b 2c 20 73 6c 6f 70 74 | 5b 30 5d 2c 20 73 6c 6f |k, slopt|[0], slo|
|00001f10| 70 74 5b 31 5d 2c 20 73 | 6c 6f 70 74 5b 32 5d 2c |pt[1], s|lopt[2],|
|00001f20| 20 73 6c 6f 70 74 5b 33 | 5d 2c 20 73 6c 6f 70 74 | slopt[3|], slopt|
|00001f30| 5b 34 5d 29 3b 0a 09 20 | 7d 20 2f 2a 20 65 6e 64 |[4]);.. |} /* end|
|00001f40| 20 69 66 20 44 59 4e 41 | 4d 49 43 20 2a 2f 0a 0a | if DYNA|MIC */..|
|00001f50| 09 20 2f 2a 20 50 72 65 | 70 61 72 65 20 73 6c 69 |. /* Pre|pare sli|
|00001f60| 70 5f 6d 6f 64 65 20 2a | 2f 0a 09 20 73 6c 69 70 |p_mode *|/.. slip|
|00001f70| 5f 6d 6f 64 65 20 3d 20 | 30 3b 0a 09 20 66 6f 72 |_mode = |0;.. for|
|00001f80| 20 28 69 20 3d 20 30 3b | 20 69 20 3c 20 6e 20 2d | (i = 0;| i < n -|
|00001f90| 20 34 3b 20 69 2b 2b 29 | 0a 09 20 7b 0a 09 20 20 | 4; i++)|.. {.. |
|00001fa0| 66 6f 72 20 28 6a 20 3d | 20 30 3b 20 6a 20 3c 20 |for (j =| 0; j < |
|00001fb0| 73 69 7a 65 6f 66 28 6d | 6f 64 65 73 29 2f 73 69 |sizeof(m|odes)/si|
|00001fc0| 7a 65 6f 66 28 73 74 72 | 75 63 74 20 73 6c 69 70 |zeof(str|uct slip|
|00001fd0| 5f 6d 6f 64 65 73 29 3b | 20 6a 2b 2b 29 0a 09 20 |_modes);| j++).. |
|00001fe0| 20 7b 0a 09 20 20 20 69 | 66 20 28 73 74 72 63 6d | {.. i|f (strcm|
|00001ff0| 70 28 6d 6f 64 65 73 5b | 6a 5d 2e 73 6d 5f 6e 61 |p(modes[|j].sm_na|
|00002000| 6d 65 2c 20 73 6c 6f 70 | 74 5b 69 5d 29 20 3d 3d |me, slop|t[i]) ==|
|00002010| 20 30 29 0a 09 20 20 20 | 7b 0a 09 09 73 6c 69 70 | 0).. |{...slip|
|00002020| 5f 6d 6f 64 65 20 7c 3d | 20 6d 6f 64 65 73 5b 6a |_mode |=| modes[j|
|00002030| 5d 2e 73 6d 5f 76 61 6c | 75 65 3b 0a 09 09 62 72 |].sm_val|ue;...br|
|00002040| 65 61 6b 3b 0a 09 20 20 | 20 7d 0a 09 20 20 7d 20 |eak;.. | }.. } |
|00002050| 2f 2a 20 65 6e 64 20 66 | 6f 72 20 2a 2f 0a 09 20 |/* end f|or */.. |
|00002060| 7d 20 2f 2a 20 65 6e 64 | 20 66 6f 72 20 2a 2f 0a |} /* end| for */.|
|00002070| 0a 09 20 2f 2a 0a 09 20 | 20 2a 20 73 65 65 20 69 |.. /*.. | * see i|
|00002080| 66 20 74 68 65 72 65 27 | 73 20 61 20 6c 6f 67 69 |f there'|s a logi|
|00002090| 6e 20 66 69 6c 65 20 77 | 65 20 63 61 6e 20 75 73 |n file w|e can us|
|000020a0| 65 2e 20 20 46 69 72 73 | 74 20 63 68 65 63 6b 20 |e. Firs|t check |
|000020b0| 66 6f 72 0a 09 20 20 2a | 20 6f 6e 65 20 73 70 65 |for.. *| one spe|
|000020c0| 63 69 66 69 63 20 74 6f | 20 74 68 69 73 20 68 6f |cific to| this ho|
|000020d0| 73 74 2e 20 20 49 66 20 | 6e 6f 6e 65 20 66 6f 75 |st. If |none fou|
|000020e0| 6e 64 2c 20 74 72 79 20 | 66 6f 72 0a 09 20 20 2a |nd, try |for.. *|
|000020f0| 20 61 20 67 65 6e 65 72 | 69 63 20 6f 6e 65 2e 0a | a gener|ic one..|
|00002100| 09 20 20 2a 2f 0a 09 20 | 73 70 72 69 6e 74 66 28 |. */.. |sprintf(|
|00002110| 6c 6f 67 69 6e 66 69 6c | 65 2c 20 22 25 73 2e 25 |loginfil|e, "%s.%|
|00002120| 73 22 2c 20 5f 50 41 54 | 48 5f 4c 4f 47 49 4e 2c |s", _PAT|H_LOGIN,|
|00002130| 20 6e 61 6d 65 29 3b 0a | 09 20 69 66 20 28 61 63 | name);.|. if (ac|
|00002140| 63 65 73 73 28 6c 6f 67 | 69 6e 66 69 6c 65 2c 20 |cess(log|infile, |
|00002150| 52 5f 4f 4b 7c 58 5f 4f | 4b 29 20 21 3d 20 30 29 |R_OK|X_O|K) != 0)|
|00002160| 0a 09 20 7b 0a 09 20 20 | 73 74 72 63 70 79 28 6c |.. {.. |strcpy(l|
|00002170| 6f 67 69 6e 66 69 6c 65 | 2c 20 5f 50 41 54 48 5f |oginfile|, _PATH_|
|00002180| 4c 4f 47 49 4e 29 3b 0a | 09 20 20 69 66 20 28 61 |LOGIN);.|. if (a|
|00002190| 63 63 65 73 73 28 6c 6f | 67 69 6e 66 69 6c 65 2c |ccess(lo|ginfile,|
|000021a0| 20 52 5f 4f 4b 7c 58 5f | 4f 4b 29 29 0a 09 20 20 | R_OK|X_|OK)).. |
|000021b0| 7b 0a 09 09 66 70 75 74 | 73 28 22 61 63 63 65 73 |{...fput|s("acces|
|000021c0| 73 20 64 65 6e 69 65 64 | 20 2d 20 6e 6f 20 6c 6f |s denied| - no lo|
|000021d0| 67 69 6e 20 66 69 6c 65 | 5c 6e 22 2c 20 73 74 64 |gin file|\n", std|
|000021e0| 65 72 72 29 3b 0a 09 09 | 73 79 73 6c 6f 67 28 4c |err);...|syslog(L|
|000021f0| 4f 47 5f 45 52 52 2c 22 | 61 63 63 65 73 73 20 64 |OG_ERR,"|access d|
|00002200| 65 6e 69 65 64 20 66 6f | 72 20 25 73 20 2d 20 6e |enied fo|r %s - n|
|00002210| 6f 20 25 73 5c 6e 22 2c | 6e 61 6d 65 2c 20 6c 6f |o %s\n",|name, lo|
|00002220| 67 69 6e 66 69 6c 65 29 | 3b 0a 09 09 65 78 69 74 |ginfile)|;...exit|
|00002230| 28 35 29 3b 0a 09 20 20 | 7d 0a 09 20 7d 0a 09 20 |(5);.. |}.. }.. |
|00002240| 72 65 74 75 72 6e 3b 0a | 09 7d 20 2f 2a 20 65 6e |return;.|.} /* en|
|00002250| 64 20 77 68 69 6c 65 20 | 2a 2f 0a 09 66 63 6c 6f |d while |*/..fclo|
|00002260| 73 65 28 66 70 29 3b 0a | 09 28 76 6f 69 64 29 66 |se(fp);.|.(void)f|
|00002270| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 20 22 |printf(s|tderr, "|
|00002280| 53 4c 49 50 20 61 63 63 | 65 73 73 20 64 65 6e 69 |SLIP acc|ess deni|
|00002290| 65 64 20 66 6f 72 20 25 | 73 5c 6e 22 2c 20 6e 61 |ed for %|s\n", na|
|000022a0| 6d 65 29 3b 0a 09 73 79 | 73 6c 6f 67 28 4c 4f 47 |me);..sy|slog(LOG|
|000022b0| 5f 45 52 52 2c 20 22 53 | 4c 49 50 20 61 63 63 65 |_ERR, "S|LIP acce|
|000022c0| 73 73 20 64 65 6e 69 65 | 64 20 66 6f 72 20 25 73 |ss denie|d for %s|
|000022d0| 5c 6e 22 2c 20 6e 61 6d | 65 29 3b 0a 09 65 78 69 |\n", nam|e);..exi|
|000022e0| 74 28 34 29 3b 0a 7d 0a | 0a 63 68 61 72 20 2a 0a |t(4);.}.|.char *.|
|000022f0| 73 69 67 73 74 72 28 73 | 29 0a 09 69 6e 74 20 73 |sigstr(s|)..int s|
|00002300| 3b 0a 7b 0a 09 73 74 61 | 74 69 63 20 63 68 61 72 |;.{..sta|tic char|
|00002310| 20 62 75 66 5b 33 32 5d | 3b 0a 0a 09 73 77 69 74 | buf[32]|;...swit|
|00002320| 63 68 20 28 73 29 20 7b | 0a 09 63 61 73 65 20 53 |ch (s) {|..case S|
|00002330| 49 47 48 55 50 3a 09 72 | 65 74 75 72 6e 28 22 48 |IGHUP:.r|eturn("H|
|00002340| 55 50 22 29 3b 0a 09 63 | 61 73 65 20 53 49 47 49 |UP");..c|ase SIGI|
|00002350| 4e 54 3a 09 72 65 74 75 | 72 6e 28 22 49 4e 54 22 |NT:.retu|rn("INT"|
|00002360| 29 3b 0a 09 63 61 73 65 | 20 53 49 47 51 55 49 54 |);..case| SIGQUIT|
|00002370| 3a 09 72 65 74 75 72 6e | 28 22 51 55 49 54 22 29 |:.return|("QUIT")|
|00002380| 3b 0a 09 63 61 73 65 20 | 53 49 47 49 4c 4c 3a 09 |;..case |SIGILL:.|
|00002390| 72 65 74 75 72 6e 28 22 | 49 4c 4c 22 29 3b 0a 09 |return("|ILL");..|
|000023a0| 63 61 73 65 20 53 49 47 | 54 52 41 50 3a 09 72 65 |case SIG|TRAP:.re|
|000023b0| 74 75 72 6e 28 22 54 52 | 41 50 22 29 3b 0a 09 63 |turn("TR|AP");..c|
|000023c0| 61 73 65 20 53 49 47 49 | 4f 54 3a 09 72 65 74 75 |ase SIGI|OT:.retu|
|000023d0| 72 6e 28 22 49 4f 54 22 | 29 3b 0a 09 63 61 73 65 |rn("IOT"|);..case|
|000023e0| 20 53 49 47 46 50 45 3a | 09 72 65 74 75 72 6e 28 | SIGFPE:|.return(|
|000023f0| 22 46 50 45 22 29 3b 0a | 09 63 61 73 65 20 53 49 |"FPE");.|.case SI|
|00002400| 47 4b 49 4c 4c 3a 09 72 | 65 74 75 72 6e 28 22 4b |GKILL:.r|eturn("K|
|00002410| 49 4c 4c 22 29 3b 0a 09 | 63 61 73 65 20 53 49 47 |ILL");..|case SIG|
|00002420| 42 55 53 3a 09 72 65 74 | 75 72 6e 28 22 42 55 53 |BUS:.ret|urn("BUS|
|00002430| 22 29 3b 0a 09 63 61 73 | 65 20 53 49 47 53 45 47 |");..cas|e SIGSEG|
|00002440| 56 3a 09 72 65 74 75 72 | 6e 28 22 53 45 47 56 22 |V:.retur|n("SEGV"|
|00002450| 29 3b 0a 09 63 61 73 65 | 20 53 49 47 50 49 50 45 |);..case| SIGPIPE|
|00002460| 3a 09 72 65 74 75 72 6e | 28 22 50 49 50 45 22 29 |:.return|("PIPE")|
|00002470| 3b 0a 09 63 61 73 65 20 | 53 49 47 41 4c 52 4d 3a |;..case |SIGALRM:|
|00002480| 09 72 65 74 75 72 6e 28 | 22 41 4c 52 4d 22 29 3b |.return(|"ALRM");|
|00002490| 0a 09 63 61 73 65 20 53 | 49 47 54 45 52 4d 3a 09 |..case S|IGTERM:.|
|000024a0| 72 65 74 75 72 6e 28 22 | 54 45 52 4d 22 29 3b 0a |return("|TERM");.|
|000024b0| 09 63 61 73 65 20 53 49 | 47 55 52 47 3a 09 72 65 |.case SI|GURG:.re|
|000024c0| 74 75 72 6e 28 22 55 52 | 47 22 29 3b 0a 09 63 61 |turn("UR|G");..ca|
|000024d0| 73 65 20 53 49 47 53 54 | 4f 50 3a 09 72 65 74 75 |se SIGST|OP:.retu|
|000024e0| 72 6e 28 22 53 54 4f 50 | 22 29 3b 0a 09 63 61 73 |rn("STOP|");..cas|
|000024f0| 65 20 53 49 47 54 53 54 | 50 3a 09 72 65 74 75 72 |e SIGTST|P:.retur|
|00002500| 6e 28 22 54 53 54 50 22 | 29 3b 0a 09 63 61 73 65 |n("TSTP"|);..case|
|00002510| 20 53 49 47 43 4f 4e 54 | 3a 09 72 65 74 75 72 6e | SIGCONT|:.return|
|00002520| 28 22 43 4f 4e 54 22 29 | 3b 0a 09 63 61 73 65 20 |("CONT")|;..case |
|00002530| 53 49 47 43 48 4c 44 3a | 09 72 65 74 75 72 6e 28 |SIGCHLD:|.return(|
|00002540| 22 43 48 4c 44 22 29 3b | 0a 09 63 61 73 65 20 53 |"CHLD");|..case S|
|00002550| 49 47 54 54 49 4e 3a 09 | 72 65 74 75 72 6e 28 22 |IGTTIN:.|return("|
|00002560| 54 54 49 4e 22 29 3b 0a | 09 63 61 73 65 20 53 49 |TTIN");.|.case SI|
|00002570| 47 54 54 4f 55 3a 09 72 | 65 74 75 72 6e 28 22 54 |GTTOU:.r|eturn("T|
|00002580| 54 4f 55 22 29 3b 0a 09 | 63 61 73 65 20 53 49 47 |TOU");..|case SIG|
|00002590| 58 43 50 55 3a 09 72 65 | 74 75 72 6e 28 22 58 43 |XCPU:.re|turn("XC|
|000025a0| 50 55 22 29 3b 0a 09 63 | 61 73 65 20 53 49 47 58 |PU");..c|ase SIGX|
|000025b0| 46 53 5a 3a 09 72 65 74 | 75 72 6e 28 22 58 46 53 |FSZ:.ret|urn("XFS|
|000025c0| 5a 22 29 3b 0a 09 63 61 | 73 65 20 53 49 47 56 54 |Z");..ca|se SIGVT|
|000025d0| 41 4c 52 4d 3a 09 72 65 | 74 75 72 6e 28 22 56 54 |ALRM:.re|turn("VT|
|000025e0| 41 4c 52 4d 22 29 3b 0a | 09 63 61 73 65 20 53 49 |ALRM");.|.case SI|
|000025f0| 47 50 52 4f 46 3a 09 72 | 65 74 75 72 6e 28 22 50 |GPROF:.r|eturn("P|
|00002600| 52 4f 46 22 29 3b 0a 09 | 63 61 73 65 20 53 49 47 |ROF");..|case SIG|
|00002610| 57 49 4e 43 48 3a 09 72 | 65 74 75 72 6e 28 22 57 |WINCH:.r|eturn("W|
|00002620| 49 4e 43 48 22 29 3b 0a | 23 69 66 64 65 66 20 53 |INCH");.|#ifdef S|
|00002630| 49 47 4c 4f 53 54 0a 09 | 63 61 73 65 20 53 49 47 |IGLOST..|case SIG|
|00002640| 4c 4f 53 54 3a 09 72 65 | 74 75 72 6e 28 22 4c 4f |LOST:.re|turn("LO|
|00002650| 53 54 22 29 3b 0a 23 65 | 6e 64 69 66 0a 09 63 61 |ST");.#e|ndif..ca|
|00002660| 73 65 20 53 49 47 55 53 | 52 31 3a 09 72 65 74 75 |se SIGUS|R1:.retu|
|00002670| 72 6e 28 22 55 53 52 31 | 22 29 3b 0a 09 63 61 73 |rn("USR1|");..cas|
|00002680| 65 20 53 49 47 55 53 52 | 32 3a 09 72 65 74 75 72 |e SIGUSR|2:.retur|
|00002690| 6e 28 22 55 53 52 32 22 | 29 3b 0a 09 7d 0a 09 28 |n("USR2"|);..}..(|
|000026a0| 76 6f 69 64 29 73 70 72 | 69 6e 74 66 28 62 75 66 |void)spr|intf(buf|
|000026b0| 2c 20 22 73 69 67 20 25 | 64 22 2c 20 73 29 3b 0a |, "sig %|d", s);.|
|000026c0| 09 72 65 74 75 72 6e 28 | 62 75 66 29 3b 0a 7d 0a |.return(|buf);.}.|
|000026d0| 0a 76 6f 69 64 20 63 6c | 6f 73 65 5f 74 69 6d 65 |.void cl|ose_time|
|000026e0| 6f 75 74 28 29 0a 7b 0a | 20 73 79 73 6c 6f 67 28 |out().{.| syslog(|
|000026f0| 4c 4f 47 5f 49 4e 46 4f | 2c 20 22 74 69 6d 65 6f |LOG_INFO|, "timeo|
|00002700| 75 74 20 25 73 27 73 20 | 73 6c 69 70 20 75 6e 69 |ut %s's |slip uni|
|00002710| 74 20 25 73 20 28 25 73 | 29 5c 6e 22 2c 20 6c 6f |t %s (%s|)\n", lo|
|00002720| 67 69 6e 6e 61 6d 65 2c | 20 75 6e 69 74 2c 0a 20 |ginname,| unit,. |
|00002730| 20 20 20 20 20 20 20 20 | 20 20 73 69 67 73 74 72 | | sigstr|
|00002740| 28 48 55 50 29 29 3b 0a | 23 69 66 64 65 66 20 6c |(HUP));.|#ifdef l|
|00002750| 69 6e 75 78 0a 20 76 68 | 61 6e 67 75 70 28 29 3b |inux. vh|angup();|
|00002760| 0a 23 65 6e 64 69 66 0a | 20 65 78 69 74 28 2d 31 |.#endif.| exit(-1|
|00002770| 29 3b 0a 7d 0a 0a 76 6f | 69 64 20 68 75 70 5f 68 |);.}..vo|id hup_h|
|00002780| 61 6e 64 6c 65 72 28 69 | 6e 74 20 73 29 0a 7b 0a |andler(i|nt s).{.|
|00002790| 20 48 55 50 3d 73 3b 20 | 2f 2a 20 74 68 69 73 20 | HUP=s; |/* this |
|000027a0| 61 76 6f 69 64 73 20 72 | 61 63 65 20 63 6f 6e 64 |avoids r|ace cond|
|000027b0| 69 74 69 6f 6e 73 20 2a | 2f 0a 7d 0a 0a 76 6f 69 |itions *|/.}..voi|
|000027c0| 64 20 65 78 69 74 5f 73 | 6c 69 70 6c 6f 67 69 6e |d exit_s|liplogin|
|000027d0| 28 29 0a 7b 0a 09 63 68 | 61 72 20 6c 6f 67 6f 75 |().{..ch|ar logou|
|000027e0| 74 66 69 6c 65 5b 4d 41 | 58 50 41 54 48 4c 45 4e |tfile[MA|XPATHLEN|
|000027f0| 5d 3b 0a 20 20 20 20 73 | 74 72 75 63 74 20 73 69 |];. s|truct si|
|00002800| 67 61 63 74 69 6f 6e 20 | 73 61 3b 0a 0a 09 28 76 |gaction |sa;...(v|
|00002810| 6f 69 64 29 73 70 72 69 | 6e 74 66 28 6c 6f 67 6f |oid)spri|ntf(logo|
|00002820| 75 74 66 69 6c 65 2c 20 | 22 25 73 2e 25 73 22 2c |utfile, |"%s.%s",|
|00002830| 20 5f 50 41 54 48 5f 4c | 4f 47 4f 55 54 2c 20 6c | _PATH_L|OGOUT, l|
|00002840| 6f 67 69 6e 6e 61 6d 65 | 29 3b 0a 09 69 66 20 28 |oginname|);..if (|
|00002850| 61 63 63 65 73 73 28 6c | 6f 67 6f 75 74 66 69 6c |access(l|ogoutfil|
|00002860| 65 2c 20 52 5f 4f 4b 7c | 58 5f 4f 4b 29 20 21 3d |e, R_OK||X_OK) !=|
|00002870| 20 30 29 0a 09 09 28 76 | 6f 69 64 29 73 74 72 63 | 0)...(v|oid)strc|
|00002880| 70 79 28 6c 6f 67 6f 75 | 74 66 69 6c 65 2c 20 5f |py(logou|tfile, _|
|00002890| 50 41 54 48 5f 4c 4f 47 | 4f 55 54 29 3b 0a 09 69 |PATH_LOG|OUT);..i|
|000028a0| 66 20 28 61 63 63 65 73 | 73 28 6c 6f 67 6f 75 74 |f (acces|s(logout|
|000028b0| 66 69 6c 65 2c 20 52 5f | 4f 4b 7c 58 5f 4f 4b 29 |file, R_|OK|X_OK)|
|000028c0| 20 3d 3d 20 30 29 20 7b | 0a 09 09 63 68 61 72 20 | == 0) {|...char |
|000028d0| 6c 6f 67 69 6e 63 6d 64 | 5b 32 2a 4d 41 58 50 41 |logincmd|[2*MAXPA|
|000028e0| 54 48 4c 45 4e 2b 33 32 | 5d 3b 0a 0a 09 09 28 76 |THLEN+32|];....(v|
|000028f0| 6f 69 64 29 20 73 70 72 | 69 6e 74 66 28 6c 6f 67 |oid) spr|intf(log|
|00002900| 69 6e 63 6d 64 2c 20 22 | 25 73 20 25 73 20 25 64 |incmd, "|%s %s %d|
|00002910| 20 25 73 22 2c 20 6c 6f | 67 6f 75 74 66 69 6c 65 | %s", lo|goutfile|
|00002920| 2c 20 75 6e 69 74 2c 20 | 6c 69 6e 65 73 70 65 65 |, unit, |linespee|
|00002930| 64 2c 0a 09 09 09 20 20 | 20 20 20 20 20 6c 6f 67 |d,.... | log|
|00002940| 69 6e 61 72 67 73 29 3b | 0a 09 09 28 76 6f 69 64 |inargs);|...(void|
|00002950| 29 20 73 79 73 74 65 6d | 28 6c 6f 67 69 6e 63 6d |) system|(logincm|
|00002960| 64 29 3b 0a 09 7d 0a 09 | 66 63 6e 74 6c 28 30 2c |d);..}..|fcntl(0,|
|00002970| 46 5f 53 45 54 46 4c 2c | 4f 5f 4e 4f 4e 42 4c 4f |F_SETFL,|O_NONBLO|
|00002980| 43 4b 29 3b 20 2f 2a 20 | 62 65 63 61 75 73 65 20 |CK); /* |because |
|00002990| 63 6c 6f 73 65 20 73 6f | 6d 65 74 69 6d 65 73 20 |close so|metimes |
|000029a0| 6e 65 76 65 72 20 72 65 | 74 75 72 6e 73 20 2a 2f |never re|turns */|
|000029b0| 0a 20 20 20 20 73 61 2e | 73 61 5f 68 61 6e 64 6c |. sa.|sa_handl|
|000029c0| 65 72 20 3d 20 63 6c 6f | 73 65 5f 74 69 6d 65 6f |er = clo|se_timeo|
|000029d0| 75 74 3b 0a 20 20 20 20 | 73 61 2e 73 61 5f 66 6c |ut;. |sa.sa_fl|
|000029e0| 61 67 73 20 3d 20 30 3b | 0a 20 20 20 20 73 69 67 |ags = 0;|. sig|
|000029f0| 65 6d 70 74 79 73 65 74 | 28 26 73 61 2e 73 61 5f |emptyset|(&sa.sa_|
|00002a00| 6d 61 73 6b 29 3b 0a 20 | 20 20 20 61 6c 61 72 6d |mask);. | alarm|
|00002a10| 28 31 35 29 3b 0a 20 20 | 20 20 73 69 67 61 63 74 |(15);. | sigact|
|00002a20| 69 6f 6e 28 53 49 47 41 | 4c 52 4d 2c 26 73 61 2c |ion(SIGA|LRM,&sa,|
|00002a30| 4e 55 4c 4c 29 3b 0a 09 | 28 76 6f 69 64 29 20 63 |NULL);..|(void) c|
|00002a40| 6c 6f 73 65 28 30 29 3b | 0a 20 20 20 20 61 6c 61 |lose(0);|. ala|
|00002a50| 72 6d 28 30 29 3b 0a 20 | 20 20 20 73 61 2e 73 61 |rm(0);. | sa.sa|
|00002a60| 5f 68 61 6e 64 6c 65 72 | 20 3d 20 53 49 47 5f 44 |_handler| = SIG_D|
|00002a70| 46 4c 3b 0a 20 20 20 20 | 73 69 67 61 63 74 69 6f |FL;. |sigactio|
|00002a80| 6e 28 53 49 47 41 4c 52 | 4d 2c 26 73 61 2c 4e 55 |n(SIGALR|M,&sa,NU|
|00002a90| 4c 4c 29 3b 0a 09 73 79 | 73 6c 6f 67 28 4c 4f 47 |LL);..sy|slog(LOG|
|00002aa0| 5f 49 4e 46 4f 2c 20 22 | 63 6c 6f 73 65 64 20 25 |_INFO, "|closed %|
|00002ab0| 73 27 73 20 73 6c 69 70 | 20 75 6e 69 74 20 25 73 |s's slip| unit %s|
|00002ac0| 20 28 25 73 29 5c 6e 22 | 2c 20 6c 6f 67 69 6e 6e | (%s)\n"|, loginn|
|00002ad0| 61 6d 65 2c 20 75 6e 69 | 74 2c 0a 09 20 20 20 20 |ame, uni|t,.. |
|00002ae0| 20 20 20 73 69 67 73 74 | 72 28 48 55 50 29 29 3b | sigst|r(HUP));|
|00002af0| 0a 23 69 66 64 65 66 20 | 6c 69 6e 75 78 0a 20 20 |.#ifdef |linux. |
|00002b00| 20 20 76 68 61 6e 67 75 | 70 28 29 3b 0a 23 65 6e | vhangu|p();.#en|
|00002b10| 64 69 66 0a 09 65 78 69 | 74 28 31 29 3b 0a 7d 0a |dif..exi|t(1);.}.|
|00002b20| 0a 69 6e 74 20 6d 61 69 | 6e 28 61 72 67 63 2c 20 |.int mai|n(argc, |
|00002b30| 61 72 67 76 29 0a 09 69 | 6e 74 20 61 72 67 63 3b |argv)..i|nt argc;|
|00002b40| 0a 09 63 68 61 72 20 2a | 61 72 67 76 5b 5d 3b 0a |..char *|argv[];.|
|00002b50| 7b 0a 09 69 6e 74 20 66 | 64 2c 20 73 2c 20 6c 64 |{..int f|d, s, ld|
|00002b60| 69 73 63 2c 20 6f 64 69 | 73 63 2c 20 70 69 64 2c |isc, odi|sc, pid,|
|00002b70| 20 75 6e 69 74 6e 75 6d | 62 65 72 3b 0a 09 73 70 | unitnum|ber;..sp|
|00002b80| 65 65 64 5f 74 20 73 70 | 65 65 64 3b 0a 09 73 74 |eed_t sp|eed;..st|
|00002b90| 72 75 63 74 20 73 69 67 | 61 63 74 69 6f 6e 20 73 |ruct sig|action s|
|00002ba0| 61 3b 0a 09 63 68 61 72 | 20 2a 6e 61 6d 65 3b 0a |a;..char| *name;.|
|00002bb0| 09 73 74 72 75 63 74 20 | 74 65 72 6d 69 6f 73 20 |.struct |termios |
|00002bc0| 74 69 6f 73 2c 20 6f 74 | 69 6f 73 3b 0a 09 73 74 |tios, ot|ios;..st|
|00002bd0| 72 75 63 74 20 70 61 73 | 73 77 64 20 2a 70 77 3b |ruct pas|swd *pw;|
|00002be0| 0a 09 63 68 61 72 20 6c | 6f 67 69 6e 63 6d 64 5b |..char l|ogincmd[|
|00002bf0| 32 2a 42 55 46 53 49 5a | 2b 33 32 5d 3b 0a 09 65 |2*BUFSIZ|+32];..e|
|00002c00| 78 74 65 72 6e 20 75 69 | 64 5f 74 20 67 65 74 75 |xtern ui|d_t getu|
|00002c10| 69 64 28 29 3b 0a 0a 09 | 69 66 20 28 28 6e 61 6d |id();...|if ((nam|
|00002c20| 65 20 3d 20 73 74 72 72 | 63 68 72 28 61 72 67 76 |e = strr|chr(argv|
|00002c30| 5b 30 5d 2c 20 27 2f 27 | 29 29 20 3d 3d 20 4e 55 |[0], '/'|)) == NU|
|00002c40| 4c 4c 29 0a 09 09 6e 61 | 6d 65 20 3d 20 61 72 67 |LL)...na|me = arg|
|00002c50| 76 5b 30 5d 3b 0a 09 73 | 20 3d 20 28 69 6e 74 29 |v[0];..s| = (int)|
|00002c60| 20 67 65 74 64 74 61 62 | 6c 65 73 69 7a 65 28 29 | getdtab|lesize()|
|00002c70| 3b 0a 09 66 6f 72 20 28 | 66 64 20 3d 20 33 20 3b |;..for (|fd = 3 ;|
|00002c80| 20 66 64 20 3c 20 73 20 | 3b 20 66 64 2b 2b 29 0a | fd < s |; fd++).|
|00002c90| 09 09 28 76 6f 69 64 29 | 20 63 6c 6f 73 65 28 66 |..(void)| close(f|
|00002ca0| 64 29 3b 0a 09 6f 70 65 | 6e 6c 6f 67 28 6e 61 6d |d);..ope|nlog(nam|
|00002cb0| 65 2c 20 4c 4f 47 5f 50 | 49 44 2c 20 4c 4f 47 5f |e, LOG_P|ID, LOG_|
|00002cc0| 44 41 45 4d 4f 4e 29 3b | 0a 09 75 69 64 20 3d 20 |DAEMON);|..uid = |
|00002cd0| 67 65 74 75 69 64 28 29 | 3b 0a 0a 09 2f 2a 20 73 |getuid()|;.../* s|
|00002ce0| 65 63 75 72 69 74 79 20 | 2a 2f 0a 09 75 6e 73 65 |ecurity |*/..unse|
|00002cf0| 74 65 6e 76 28 22 49 46 | 53 22 29 3b 0a 09 73 65 |tenv("IF|S");..se|
|00002d00| 74 65 6e 76 28 22 50 41 | 54 48 22 2c 22 2f 62 69 |tenv("PA|TH","/bi|
|00002d10| 6e 3a 2f 75 73 72 2f 62 | 69 6e 3a 2f 73 62 69 6e |n:/usr/b|in:/sbin|
|00002d20| 3a 2f 65 74 63 3a 2f 75 | 73 72 2f 73 62 69 6e 22 |:/etc:/u|sr/sbin"|
|00002d30| 2c 31 29 3b 0a 0a 09 69 | 66 20 28 61 72 67 63 20 |,1);...i|f (argc |
|00002d40| 3e 20 31 29 20 0a 09 7b | 0a 09 20 6e 61 6d 65 3d |> 1) ..{|.. name=|
|00002d50| 61 72 67 76 5b 31 5d 3b | 0a 09 20 69 66 20 28 75 |argv[1];|.. if (u|
|00002d60| 69 64 21 3d 30 29 20 0a | 09 20 7b 0a 09 20 20 66 |id!=0) .|. {.. f|
|00002d70| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 22 4f |printf(s|tderr,"O|
|00002d80| 6e 6c 79 20 72 6f 6f 74 | 20 6d 61 79 20 75 73 65 |nly root| may use|
|00002d90| 20 61 72 67 75 6d 65 6e | 74 73 5c 6e 22 29 3b 0a | argumen|ts\n");.|
|00002da0| 09 20 20 65 78 69 74 28 | 2d 31 29 3b 0a 09 20 7d |. exit(|-1);.. }|
|00002db0| 0a 09 7d 0a 09 65 6c 73 | 65 0a 09 7b 0a 09 09 70 |..}..els|e..{...p|
|00002dc0| 77 20 3d 20 67 65 74 70 | 77 75 69 64 28 75 69 64 |w = getp|wuid(uid|
|00002dd0| 29 3b 0a 09 09 69 66 20 | 28 70 77 20 3d 3d 20 4e |);...if |(pw == N|
|00002de0| 55 4c 4c 29 0a 09 09 7b | 0a 09 09 09 28 76 6f 69 |ULL)...{|....(voi|
|00002df0| 64 29 20 66 70 72 69 6e | 74 66 28 73 74 64 65 72 |d) fprin|tf(stder|
|00002e00| 72 2c 20 22 61 63 63 65 | 73 73 20 64 65 6e 69 65 |r, "acce|ss denie|
|00002e10| 64 20 2d 20 6e 6f 20 75 | 73 65 72 6e 61 6d 65 5c |d - no u|sername\|
|00002e20| 6e 22 29 3b 0a 09 09 09 | 73 79 73 6c 6f 67 28 4c |n");....|syslog(L|
|00002e30| 4f 47 5f 45 52 52 2c 20 | 22 61 63 63 65 73 73 20 |OG_ERR, |"access |
|00002e40| 64 65 6e 69 65 64 20 2d | 20 67 65 74 70 77 75 69 |denied -| getpwui|
|00002e50| 64 20 72 65 74 75 72 6e | 65 64 20 30 5c 6e 22 29 |d return|ed 0\n")|
|00002e60| 3b 0a 09 09 09 65 78 69 | 74 28 31 29 3b 0a 09 09 |;....exi|t(1);...|
|00002e70| 7d 0a 09 09 6e 61 6d 65 | 3d 70 77 2d 3e 70 77 5f |}...name|=pw->pw_|
|00002e80| 6e 61 6d 65 3b 0a 09 7d | 0a 0a 09 2f 2a 0a 09 20 |name;..}|.../*.. |
|00002e90| 2a 20 47 6f 20 74 6f 20 | 62 61 63 6b 67 72 6f 75 |* Go to |backgrou|
|00002ea0| 6e 64 2c 20 62 65 63 6f | 6d 65 20 70 72 6f 63 65 |nd, beco|me proce|
|00002eb0| 73 73 20 67 72 6f 75 70 | 20 6c 65 61 64 65 72 20 |ss group| leader |
|00002ec0| 28 69 66 20 6e 6f 74 20 | 61 6c 72 65 61 64 79 29 |(if not |already)|
|00002ed0| 0a 09 20 2a 20 61 6e 64 | 20 65 6e 73 75 72 65 20 |.. * and| ensure |
|00002ee0| 74 68 61 74 20 74 68 65 | 20 73 6c 69 70 20 6c 69 |that the| slip li|
|00002ef0| 6e 65 20 69 73 20 6f 75 | 72 20 63 6f 6e 74 72 6f |ne is ou|r contro|
|00002f00| 6c 6c 69 6e 67 20 74 65 | 72 6d 69 6e 61 6c 2e 0a |lling te|rminal..|
|00002f10| 09 20 2a 2f 0a 2f 2a 0a | 69 66 20 28 66 6f 72 6b |. */./*.|if (fork|
|00002f20| 28 29 20 3e 20 30 29 20 | 65 78 69 74 28 30 29 3b |() > 0) |exit(0);|
|00002f30| 0a 6d 61 79 62 65 20 64 | 6f 6e 27 74 20 66 6f 72 |.maybe d|on't for|
|00002f40| 6b 20 61 6e 64 20 64 6f | 6e 27 74 20 67 6f 20 74 |k and do|n't go t|
|00002f50| 6f 20 62 61 63 6b 67 72 | 6f 75 6e 64 0a 2a 2f 0a |o backgr|ound.*/.|
|00002f60| 09 2f 2a 0a 09 20 2a 20 | 73 65 74 73 69 64 28 29 |./*.. * |setsid()|
|00002f70| 20 74 6f 20 62 65 63 6f | 6d 65 20 70 72 6f 63 65 | to beco|me proce|
|00002f80| 73 73 20 67 72 6f 75 70 | 20 6c 65 61 64 65 72 0a |ss group| leader.|
|00002f90| 09 20 2a 2f 0a 09 69 66 | 20 28 73 65 74 73 69 64 |. */..if| (setsid|
|00002fa0| 28 29 20 3c 20 30 29 20 | 73 79 73 6c 6f 67 28 4c |() < 0) |syslog(L|
|00002fb0| 4f 47 5f 45 52 52 2c 22 | 63 61 6e 27 74 20 73 65 |OG_ERR,"|can't se|
|00002fc0| 74 73 69 64 3a 20 25 6d | 22 29 3b 0a 23 69 66 64 |tsid: %m|");.#ifd|
|00002fd0| 65 66 20 54 49 4f 43 53 | 43 54 54 59 0a 09 69 66 |ef TIOCS|CTTY..if|
|00002fe0| 20 28 69 6f 63 74 6c 28 | 30 2c 20 54 49 4f 43 53 | (ioctl(|0, TIOCS|
|00002ff0| 43 54 54 59 2c 20 28 63 | 61 64 64 72 5f 74 29 30 |CTTY, (c|addr_t)0|
|00003000| 29 20 3c 20 30 29 0a 09 | 09 70 65 72 72 6f 72 28 |) < 0)..|.perror(|
|00003010| 22 73 6c 69 70 6c 6f 67 | 69 6e 3a 20 63 61 6e 27 |"sliplog|in: can'|
|00003020| 74 20 73 65 74 20 6d 79 | 20 63 6f 6e 74 72 6f 6c |t set my| control|
|00003030| 6c 69 6e 67 20 74 74 79 | 20 2d 22 29 3b 0a 23 65 |ling tty| -");.#e|
|00003040| 6e 64 69 66 0a 09 66 69 | 6e 64 69 64 28 6e 61 6d |ndif..fi|ndid(nam|
|00003050| 65 29 3b 0a 09 66 63 68 | 6d 6f 64 28 30 2c 20 30 |e);..fch|mod(0, 0|
|00003060| 36 30 30 29 3b 0a 09 66 | 70 72 69 6e 74 66 28 73 |600);..f|printf(s|
|00003070| 74 64 65 72 72 2c 20 22 | 53 74 61 72 74 69 6e 67 |tderr, "|Starting|
|00003080| 20 25 73 20 73 6c 69 70 | 20 66 6f 72 20 25 73 5c | %s slip| for %s\|
|00003090| 6e 22 2c 73 6c 6f 70 74 | 5b 30 5d 2c 6c 6f 67 69 |n",slopt|[0],logi|
|000030a0| 6e 6e 61 6d 65 29 3b 0a | 09 66 70 72 69 6e 74 66 |nname);.|.fprintf|
|000030b0| 28 73 74 64 65 72 72 2c | 20 22 59 6f 75 72 20 49 |(stderr,| "Your I|
|000030c0| 50 20 61 64 64 72 65 73 | 73 20 69 73 20 25 73 20 |P addres|s is %s |
|000030d0| 2c 20 74 68 65 20 73 65 | 72 76 65 72 20 69 73 20 |, the se|rver is |
|000030e0| 25 73 5c 6e 22 2c 20 72 | 61 64 64 72 2c 6c 61 64 |%s\n", r|addr,lad|
|000030f0| 64 72 29 3b 0a 09 66 66 | 6c 75 73 68 28 73 74 64 |dr);..ff|lush(std|
|00003100| 65 72 72 29 3b 0a 09 73 | 6c 65 65 70 28 32 29 3b |err);..s|leep(2);|
|00003110| 20 2f 2a 20 4a 6f 6e 20 | 4c 65 77 69 73 20 6e 65 | /* Jon |Lewis ne|
|00003120| 65 64 73 20 74 68 69 73 | 20 74 6f 20 67 65 74 20 |eds this| to get |
|00003130| 74 68 65 20 66 75 6c 6c | 20 70 72 69 6e 74 66 20 |the full| printf |
|00003140| 6f 75 74 70 75 74 20 2a | 2f 0a 09 2f 2a 20 73 65 |output *|/../* se|
|00003150| 74 20 75 70 20 74 68 65 | 20 6c 69 6e 65 20 70 61 |t up the| line pa|
|00003160| 72 61 6d 65 74 65 72 73 | 20 2a 2f 0a 09 69 66 20 |rameters| */..if |
|00003170| 28 74 63 67 65 74 61 74 | 74 72 28 30 2c 20 26 74 |(tcgetat|tr(0, &t|
|00003180| 69 6f 73 29 20 3c 20 30 | 29 20 7b 0a 09 09 73 79 |ios) < 0|) {...sy|
|00003190| 73 6c 6f 67 28 4c 4f 47 | 5f 45 52 52 2c 20 22 74 |slog(LOG|_ERR, "t|
|000031a0| 63 67 65 74 61 74 74 72 | 3a 20 25 6d 22 29 3b 0a |cgetattr|: %m");.|
|000031b0| 09 09 65 78 69 74 28 31 | 29 3b 0a 09 7d 0a 09 6f |..exit(1|);..}..o|
|000031c0| 74 69 6f 73 20 3d 20 74 | 69 6f 73 3b 0a 09 63 66 |tios = t|ios;..cf|
|000031d0| 6d 61 6b 65 72 61 77 28 | 26 74 69 6f 73 29 3b 0a |makeraw(|&tios);.|
|000031e0| 09 74 69 6f 73 2e 63 5f | 69 66 6c 61 67 20 26 3d |.tios.c_|iflag &=|
|000031f0| 20 7e 49 4d 41 58 42 45 | 4c 3b 0a 09 69 66 20 28 | ~IMAXBE|L;..if (|
|00003200| 74 63 73 65 74 61 74 74 | 72 28 30 2c 20 54 43 53 |tcsetatt|r(0, TCS|
|00003210| 41 46 4c 55 53 48 2c 20 | 26 74 69 6f 73 29 20 3c |AFLUSH, |&tios) <|
|00003220| 20 30 29 0a 09 7b 0a 09 | 09 73 79 73 6c 6f 67 28 | 0)..{..|.syslog(|
|00003230| 4c 4f 47 5f 45 52 52 2c | 20 22 74 63 73 65 74 61 |LOG_ERR,| "tcseta|
|00003240| 74 74 72 3a 20 25 6d 22 | 29 3b 0a 09 09 65 78 69 |ttr: %m"|);...exi|
|00003250| 74 28 31 29 3b 0a 09 7d | 0a 0a 09 73 70 65 65 64 |t(1);..}|...speed|
|00003260| 20 3d 20 63 66 67 65 74 | 69 73 70 65 65 64 28 26 | = cfget|ispeed(&|
|00003270| 74 69 6f 73 29 3b 0a 09 | 6c 69 6e 65 73 70 65 65 |tios);..|linespee|
|00003280| 64 3d 74 72 61 6e 73 6c | 61 74 65 5f 73 70 65 65 |d=transl|ate_spee|
|00003290| 64 28 73 70 65 65 64 29 | 3b 0a 0a 09 2f 2a 20 66 |d(speed)|;.../* f|
|000032a0| 69 6e 64 20 6f 75 74 20 | 77 68 61 74 20 6c 64 69 |ind out |what ldi|
|000032b0| 73 63 20 77 65 20 73 74 | 61 72 74 65 64 20 77 69 |sc we st|arted wi|
|000032c0| 74 68 20 2a 2f 0a 09 69 | 66 20 28 69 6f 63 74 6c |th */..i|f (ioctl|
|000032d0| 28 30 2c 20 54 49 4f 43 | 47 45 54 44 2c 20 28 63 |(0, TIOC|GETD, (c|
|000032e0| 61 64 64 72 5f 74 29 26 | 6f 64 69 73 63 29 20 3c |addr_t)&|odisc) <|
|000032f0| 20 30 29 0a 09 7b 0a 09 | 09 73 79 73 6c 6f 67 28 | 0)..{..|.syslog(|
|00003300| 4c 4f 47 5f 45 52 52 2c | 20 22 69 6f 63 74 6c 28 |LOG_ERR,| "ioctl(|
|00003310| 54 49 4f 43 47 45 54 44 | 29 20 28 31 29 3a 20 25 |TIOCGETD|) (1): %|
|00003320| 6d 22 29 3b 0a 09 09 65 | 78 69 74 28 31 29 3b 0a |m");...e|xit(1);.|
|00003330| 09 7d 0a 09 2f 2a 20 73 | 77 69 74 63 68 20 74 6f |.}../* s|witch to|
|00003340| 20 73 6c 69 70 20 6c 69 | 6e 65 20 64 69 73 63 69 | slip li|ne disci|
|00003350| 70 6c 69 6e 65 20 2a 2f | 0a 09 6c 64 69 73 63 20 |pline */|..ldisc |
|00003360| 3d 20 4e 5f 53 4c 49 50 | 3b 0a 09 69 66 20 28 69 |= N_SLIP|;..if (i|
|00003370| 6f 63 74 6c 28 30 2c 20 | 54 49 4f 43 53 45 54 44 |octl(0, |TIOCSETD|
|00003380| 2c 20 28 63 61 64 64 72 | 5f 74 29 26 6c 64 69 73 |, (caddr|_t)&ldis|
|00003390| 63 29 20 3c 20 30 29 0a | 09 7b 0a 09 09 73 79 73 |c) < 0).|.{...sys|
|000033a0| 6c 6f 67 28 4c 4f 47 5f | 45 52 52 2c 20 22 69 6f |log(LOG_|ERR, "io|
|000033b0| 63 74 6c 28 54 49 4f 43 | 53 45 54 44 29 3a 20 25 |ctl(TIOC|SETD): %|
|000033c0| 6d 22 29 3b 0a 09 09 65 | 78 69 74 28 31 29 3b 0a |m");...e|xit(1);.|
|000033d0| 09 7d 0a 09 2f 2a 20 66 | 69 6e 64 20 6f 75 74 20 |.}../* f|ind out |
|000033e0| 77 68 61 74 20 75 6e 69 | 74 20 6e 75 6d 62 65 72 |what uni|t number|
|000033f0| 20 77 65 20 77 65 72 65 | 20 61 73 73 69 67 6e 65 | we were| assigne|
|00003400| 64 20 2a 2f 0a 23 69 66 | 6e 64 65 66 20 6c 69 6e |d */.#if|ndef lin|
|00003410| 75 78 0a 09 69 66 20 28 | 69 6f 63 74 6c 28 30 2c |ux..if (|ioctl(0,|
|00003420| 20 53 4c 49 4f 43 47 55 | 4e 49 54 2c 20 28 63 61 | SLIOCGU|NIT, (ca|
|00003430| 64 64 72 5f 74 29 20 26 | 75 6e 69 74 6e 75 6d 62 |ddr_t) &|unitnumb|
|00003440| 65 72 29 20 3c 20 30 29 | 0a 09 7b 0a 09 09 73 79 |er) < 0)|..{...sy|
|00003450| 73 6c 6f 67 28 4c 4f 47 | 5f 45 52 52 2c 20 22 69 |slog(LOG|_ERR, "i|
|00003460| 6f 63 74 6c 20 28 53 4c | 49 4f 43 47 55 4e 49 54 |octl (SL|IOCGUNIT|
|00003470| 29 3a 20 25 6d 22 29 3b | 0a 09 09 65 78 69 74 28 |): %m");|...exit(|
|00003480| 31 29 3b 0a 09 7d 0a 09 | 73 70 72 69 6e 74 66 28 |1);..}..|sprintf(|
|00003490| 75 6e 69 74 2c 22 73 6c | 25 64 22 2c 75 6e 69 74 |unit,"sl|%d",unit|
|000034a0| 6e 75 6d 62 65 72 29 3b | 0a 23 65 6c 73 65 0a 09 |number);|.#else..|
|000034b0| 69 66 20 28 69 6f 63 74 | 6c 28 30 2c 20 53 49 4f |if (ioct|l(0, SIO|
|000034c0| 43 47 49 46 4e 41 4d 45 | 2c 20 28 63 61 64 64 72 |CGIFNAME|, (caddr|
|000034d0| 5f 74 29 75 6e 69 74 29 | 20 3c 20 30 29 0a 09 7b |_t)unit)| < 0)..{|
|000034e0| 0a 09 09 73 79 73 6c 6f | 67 28 4c 4f 47 5f 45 52 |...syslo|g(LOG_ER|
|000034f0| 52 2c 20 22 69 6f 63 74 | 6c 20 28 53 49 4f 43 47 |R, "ioct|l (SIOCG|
|00003500| 49 46 4e 41 4d 45 29 3a | 20 25 6d 22 29 3b 0a 09 |IFNAME):| %m");..|
|00003510| 09 65 78 69 74 28 31 29 | 3b 0a 09 7d 0a 23 65 6e |.exit(1)|;..}.#en|
|00003520| 64 69 66 0a 20 20 20 20 | 73 61 2e 73 61 5f 68 61 |dif. |sa.sa_ha|
|00003530| 6e 64 6c 65 72 20 3d 20 | 68 75 70 5f 68 61 6e 64 |ndler = |hup_hand|
|00003540| 6c 65 72 3b 0a 09 73 61 | 2e 73 61 5f 66 6c 61 67 |ler;..sa|.sa_flag|
|00003550| 73 20 3d 20 30 3b 0a 09 | 69 66 20 28 73 69 67 65 |s = 0;..|if (sige|
|00003560| 6d 70 74 79 73 65 74 28 | 26 73 61 2e 73 61 5f 6d |mptyset(|&sa.sa_m|
|00003570| 61 73 6b 29 20 21 3d 20 | 30 29 0a 09 7b 0a 09 09 |ask) != |0)..{...|
|00003580| 73 79 73 6c 6f 67 28 4c | 4f 47 5f 45 52 52 2c 20 |syslog(L|OG_ERR, |
|00003590| 22 49 20 68 61 76 65 20 | 6e 6f 20 73 69 67 6e 61 |"I have |no signa|
|000035a0| 6c 20 63 6f 6e 74 72 6f | 6c 3a 20 25 6d 22 29 3b |l contro|l: %m");|
|000035b0| 0a 09 09 65 78 69 74 28 | 31 29 3b 0a 09 7d 0a 0a |...exit(|1);..}..|
|000035c0| 09 73 69 67 61 63 74 69 | 6f 6e 28 53 49 47 48 55 |.sigacti|on(SIGHU|
|000035d0| 50 2c 26 73 61 2c 4e 55 | 4c 4c 29 3b 0a 09 73 69 |P,&sa,NU|LL);..si|
|000035e0| 67 61 63 74 69 6f 6e 28 | 53 49 47 54 45 52 4d 2c |gaction(|SIGTERM,|
|000035f0| 26 73 61 2c 4e 55 4c 4c | 29 3b 0a 0a 09 73 79 73 |&sa,NULL|);...sys|
|00003600| 6c 6f 67 28 4c 4f 47 5f | 49 4e 46 4f 2c 20 22 61 |log(LOG_|INFO, "a|
|00003610| 74 74 61 63 68 69 6e 67 | 20 73 6c 69 70 20 75 6e |ttaching| slip un|
|00003620| 69 74 20 25 73 20 66 6f | 72 20 25 73 5c 6e 22 2c |it %s fo|r %s\n",|
|00003630| 20 75 6e 69 74 2c 20 6c | 6f 67 69 6e 6e 61 6d 65 | unit, l|oginname|
|00003640| 29 3b 0a 09 70 69 64 3d | 67 65 74 70 69 64 28 29 |);..pid=|getpid()|
|00003650| 3b 0a 09 28 76 6f 69 64 | 29 73 70 72 69 6e 74 66 |;..(void|)sprintf|
|00003660| 28 6c 6f 67 69 6e 63 6d | 64 2c 20 22 25 73 20 25 |(logincm|d, "%s %|
|00003670| 73 20 25 64 20 25 64 20 | 25 73 22 2c 20 6c 6f 67 |s %d %d |%s", log|
|00003680| 69 6e 66 69 6c 65 2c 20 | 75 6e 69 74 2c 20 6c 69 |infile, |unit, li|
|00003690| 6e 65 73 70 65 65 64 2c | 0a 09 09 20 20 20 20 20 |nespeed,|... |
|000036a0| 20 70 69 64 2c 20 6c 6f | 67 69 6e 61 72 67 73 29 | pid, lo|ginargs)|
|000036b0| 3b 0a 09 73 79 73 6c 6f | 67 28 4c 4f 47 5f 49 4e |;..syslo|g(LOG_IN|
|000036c0| 46 4f 2c 20 6c 6f 67 69 | 6e 63 6d 64 29 3b 0a 09 |FO, logi|ncmd);..|
|000036d0| 2f 2a 0a 09 20 2a 20 61 | 69 6d 20 73 74 64 6f 75 |/*.. * a|im stdou|
|000036e0| 74 20 61 6e 64 20 65 72 | 72 6f 75 74 20 61 74 20 |t and er|rout at |
|000036f0| 2f 64 65 76 2f 6e 75 6c | 6c 20 73 6f 20 6c 6f 67 |/dev/nul|l so log|
|00003700| 69 6e 63 6d 64 20 6f 75 | 74 70 75 74 20 77 6f 6e |incmd ou|tput won|
|00003710| 27 74 0a 09 20 2a 20 62 | 61 62 62 6c 65 20 69 6e |'t.. * b|abble in|
|00003720| 74 6f 20 74 68 65 20 73 | 6c 69 70 20 74 74 79 20 |to the s|lip tty |
|00003730| 6c 69 6e 65 2e 0a 09 20 | 2a 2f 0a 09 63 6c 6f 73 |line... |*/..clos|
|00003740| 65 28 31 29 3b 0a 09 69 | 66 20 28 28 66 64 20 3d |e(1);..i|f ((fd =|
|00003750| 20 6f 70 65 6e 28 5f 50 | 41 54 48 5f 44 45 56 4e | open(_P|ATH_DEVN|
|00003760| 55 4c 4c 2c 20 4f 5f 57 | 52 4f 4e 4c 59 29 29 20 |ULL, O_W|RONLY)) |
|00003770| 21 3d 20 31 29 20 7b 0a | 09 09 69 66 20 28 66 64 |!= 1) {.|..if (fd|
|00003780| 20 3c 20 30 29 20 7b 0a | 09 09 09 73 79 73 6c 6f | < 0) {.|...syslo|
|00003790| 67 28 4c 4f 47 5f 45 52 | 52 2c 20 22 6f 70 65 6e |g(LOG_ER|R, "open|
|000037a0| 20 2f 64 65 76 2f 6e 75 | 6c 6c 3a 20 25 6d 22 29 | /dev/nu|ll: %m")|
|000037b0| 3b 0a 09 09 09 65 78 69 | 74 28 31 29 3b 0a 09 09 |;....exi|t(1);...|
|000037c0| 7d 0a 09 09 28 76 6f 69 | 64 29 20 64 75 70 32 28 |}...(voi|d) dup2(|
|000037d0| 66 64 2c 20 31 29 3b 0a | 09 09 28 76 6f 69 64 29 |fd, 1);.|..(void)|
|000037e0| 20 63 6c 6f 73 65 28 66 | 64 29 3b 0a 09 7d 0a 09 | close(f|d);..}..|
|000037f0| 28 76 6f 69 64 29 20 64 | 75 70 32 28 31 2c 20 32 |(void) d|up2(1, 2|
|00003800| 29 3b 0a 0a 09 2f 2a 0a | 09 20 2a 20 52 75 6e 20 |);.../*.|. * Run |
|00003810| 6c 6f 67 69 6e 20 61 6e | 64 20 6c 6f 67 6f 75 74 |login an|d logout|
|00003820| 20 73 63 72 69 70 74 73 | 20 61 73 20 72 6f 6f 74 | scripts| as root|
|00003830| 20 28 72 65 61 6c 20 61 | 6e 64 20 65 66 66 65 63 | (real a|nd effec|
|00003840| 74 69 76 65 29 3b 0a 09 | 20 2a 20 63 75 72 72 65 |tive);..| * curre|
|00003850| 6e 74 20 72 6f 75 74 65 | 28 38 29 20 69 73 20 73 |nt route|(8) is s|
|00003860| 65 74 75 69 64 20 72 6f | 6f 74 2c 20 61 6e 64 20 |etuid ro|ot, and |
|00003870| 63 68 65 63 6b 73 20 74 | 68 65 20 72 65 61 6c 20 |checks t|he real |
|00003880| 75 69 64 0a 09 20 2a 20 | 74 6f 20 73 65 65 20 77 |uid.. * |to see w|
|00003890| 68 65 74 68 65 72 20 63 | 68 61 6e 67 65 73 20 61 |hether c|hanges a|
|000038a0| 72 65 20 61 6c 6c 6f 77 | 65 64 20 28 6f 72 20 6a |re allow|ed (or j|
|000038b0| 75 73 74 20 22 72 6f 75 | 74 65 20 67 65 74 22 29 |ust "rou|te get")|
|000038c0| 2e 0a 09 20 2a 2f 0a 09 | 28 76 6f 69 64 29 20 73 |... */..|(void) s|
|000038d0| 65 74 75 69 64 28 30 29 | 3b 0a 09 73 3d 73 79 73 |etuid(0)|;..s=sys|
|000038e0| 74 65 6d 28 6c 6f 67 69 | 6e 63 6d 64 29 3b 0a 09 |tem(logi|ncmd);..|
|000038f0| 69 66 20 28 73 21 3d 30 | 29 0a 09 7b 0a 09 09 73 |if (s!=0|)..{...s|
|00003900| 79 73 6c 6f 67 28 4c 4f | 47 5f 45 52 52 2c 20 22 |yslog(LO|G_ERR, "|
|00003910| 25 73 20 6c 6f 67 69 6e | 20 66 61 69 6c 65 64 3a |%s login| failed:|
|00003920| 20 65 78 69 74 20 73 74 | 61 74 75 73 20 25 64 20 | exit st|atus %d |
|00003930| 66 72 6f 6d 20 25 73 22 | 2c 0a 09 09 20 20 20 20 |from %s"|,... |
|00003940| 20 20 20 6c 6f 67 69 6e | 6e 61 6d 65 2c 20 73 2c | login|name, s,|
|00003950| 20 6c 6f 67 69 6e 66 69 | 6c 65 29 3b 0a 09 09 69 | loginfi|le);...i|
|00003960| 6f 63 74 6c 28 30 2c 20 | 54 49 4f 43 53 45 54 44 |octl(0, |TIOCSETD|
|00003970| 2c 20 28 63 61 64 64 72 | 5f 74 29 26 6f 64 69 73 |, (caddr|_t)&odis|
|00003980| 63 29 3b 0a 09 09 65 78 | 69 74 28 36 29 3b 0a 09 |c);...ex|it(6);..|
|00003990| 7d 0a 09 2f 2a 20 73 65 | 74 20 73 6c 69 70 20 6d |}../* se|t slip m|
|000039a0| 6f 64 65 20 2a 2f 0a 23 | 69 66 6e 64 65 66 20 6c |ode */.#|ifndef l|
|000039b0| 69 6e 75 78 0a 09 69 66 | 20 28 69 6f 63 74 6c 28 |inux..if| (ioctl(|
|000039c0| 30 2c 20 53 4c 49 4f 43 | 53 46 4c 41 47 53 2c 20 |0, SLIOC|SFLAGS, |
|000039d0| 28 63 61 64 64 72 5f 74 | 29 26 73 6c 69 70 5f 6d |(caddr_t|)&slip_m|
|000039e0| 6f 64 65 29 20 3c 20 30 | 29 0a 09 7b 0a 09 09 73 |ode) < 0|)..{...s|
|000039f0| 79 73 6c 6f 67 28 4c 4f | 47 5f 45 52 52 2c 20 22 |yslog(LO|G_ERR, "|
|00003a00| 69 6f 63 74 6c 28 53 4c | 49 4f 43 53 46 4c 41 47 |ioctl(SL|IOCSFLAG|
|00003a10| 53 29 3a 20 25 6d 22 29 | 3b 0a 09 09 65 78 69 74 |S): %m")|;...exit|
|00003a20| 28 31 29 3b 0a 09 7d 0a | 23 65 6c 73 65 0a 09 69 |(1);..}.|#else..i|
|00003a30| 66 20 28 69 6f 63 74 6c | 28 30 2c 20 53 49 4f 43 |f (ioctl|(0, SIOC|
|00003a40| 53 49 46 45 4e 43 41 50 | 2c 20 28 63 61 64 64 72 |SIFENCAP|, (caddr|
|00003a50| 5f 74 29 26 73 6c 69 70 | 5f 6d 6f 64 65 29 20 3c |_t)&slip|_mode) <|
|00003a60| 20 30 29 0a 09 7b 0a 09 | 09 73 79 73 6c 6f 67 28 | 0)..{..|.syslog(|
|00003a70| 4c 4f 47 5f 45 52 52 2c | 20 22 69 6f 63 74 6c 20 |LOG_ERR,| "ioctl |
|00003a80| 28 53 49 4f 43 53 49 46 | 45 4e 43 41 50 29 3a 20 |(SIOCSIF|ENCAP): |
|00003a90| 25 6d 22 29 3b 0a 09 09 | 65 78 69 74 28 31 29 3b |%m");...|exit(1);|
|00003aa0| 0a 09 7d 0a 23 65 6e 64 | 69 66 0a 0a 0a 09 2f 2a |..}.#end|if..../*|
|00003ab0| 20 74 77 69 64 64 6c 65 | 20 74 68 75 6d 62 73 20 | twiddle| thumbs |
|00003ac0| 75 6e 74 69 6c 20 77 65 | 20 67 65 74 20 61 20 73 |until we| get a s|
|00003ad0| 69 67 6e 61 6c 20 2a 2f | 0a 09 77 68 69 6c 65 20 |ignal */|..while |
|00003ae0| 28 48 55 50 3d 3d 2d 31 | 29 20 70 61 75 73 65 28 |(HUP==-1|) pause(|
|00003af0| 29 3b 0a 09 65 78 69 74 | 5f 73 6c 69 70 6c 6f 67 |);..exit|_sliplog|
|00003b00| 69 6e 28 29 3b 0a 0a 09 | 2f 2a 20 4e 4f 54 52 45 |in();...|/* NOTRE|
|00003b10| 41 43 48 45 44 20 2a 2f | 0a 7d 0a 00 00 00 00 00 |ACHED */|.}......|
|00003b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c00| 73 6c 69 70 6c 6f 67 69 | 6e 2f 73 6c 69 70 2e 6c |sliplogi|n/slip.l|
|00003c10| 6f 67 69 6e 00 00 00 00 | 00 00 00 00 00 00 00 00 |ogin....|........|
|00003c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c60| 00 00 00 00 31 30 30 37 | 35 34 20 00 20 20 20 36 |....1007|54 . 6|
|00003c70| 32 35 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |25 . 1|44 . |
|00003c80| 20 20 20 31 30 33 31 20 | 20 35 37 33 34 33 34 31 | 1031 | 5734341|
|00003c90| 37 31 32 20 20 31 33 35 | 37 33 00 20 30 00 00 00 |712 135|73. 0...|
|00003ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d00| 00 75 73 74 61 72 20 20 | 00 67 6f 6c 64 74 00 00 |.ustar |.goldt..|
|00003d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d20| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00003d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e00| 23 21 2f 62 69 6e 2f 73 | 68 20 2d 0a 23 0a 23 09 |#!/bin/s|h -.#.#.|
|00003e10| 40 28 23 29 73 6c 69 70 | 2e 6c 6f 67 69 6e 09 35 |@(#)slip|.login.5|
|00003e20| 2e 31 20 28 42 65 72 6b | 65 6c 65 79 29 20 37 2f |.1 (Berk|eley) 7/|
|00003e30| 31 2f 39 30 0a 0a 23 0a | 23 20 67 65 6e 65 72 69 |1/90..#.|# generi|
|00003e40| 63 20 6c 6f 67 69 6e 20 | 66 69 6c 65 20 66 6f 72 |c login |file for|
|00003e50| 20 61 20 73 6c 69 70 20 | 6c 69 6e 65 2e 20 20 73 | a slip |line. s|
|00003e60| 6c 69 70 6c 6f 67 69 6e | 20 69 6e 76 6f 6b 65 73 |liplogin| invokes|
|00003e70| 20 74 68 69 73 20 77 69 | 74 68 0a 23 20 74 68 65 | this wi|th.# the|
|00003e80| 20 70 61 72 61 6d 65 74 | 65 72 73 3a 0a 23 20 20 | paramet|ers:.# |
|00003e90| 20 20 20 20 31 20 20 20 | 20 20 20 20 20 32 20 20 | 1 | 2 |
|00003ea0| 20 20 20 20 33 20 20 20 | 20 20 20 34 20 20 20 20 | 3 | 4 |
|00003eb0| 20 20 20 20 20 35 20 20 | 20 20 20 20 20 20 20 20 | 5 | |
|00003ec0| 36 20 20 20 20 20 20 20 | 20 37 20 20 20 20 20 38 |6 | 7 8|
|00003ed0| 2d 6e 0a 23 20 20 20 73 | 6c 69 70 75 6e 69 74 20 |-n.# s|lipunit |
|00003ee0| 74 74 79 73 70 65 65 64 | 20 70 69 64 20 6c 6f 67 |ttyspeed| pid log|
|00003ef0| 69 6e 6e 61 6d 65 20 6c | 6f 63 61 6c 2d 61 64 64 |inname l|ocal-add|
|00003f00| 72 20 72 65 6d 6f 74 65 | 2d 61 64 64 72 20 6d 61 |r remote|-addr ma|
|00003f10| 73 6b 20 6f 70 74 2d 61 | 72 67 73 0a 23 0a 2f 73 |sk opt-a|rgs.#./s|
|00003f20| 62 69 6e 2f 69 66 63 6f | 6e 66 69 67 20 24 31 20 |bin/ifco|nfig $1 |
|00003f30| 24 35 20 70 6f 69 6e 74 | 6f 70 6f 69 6e 74 20 24 |$5 point|opoint $|
|00003f40| 36 20 6d 74 75 20 31 35 | 30 30 20 61 72 70 20 2d |6 mtu 15|00 arp -|
|00003f50| 74 72 61 69 6c 65 72 73 | 20 75 70 0a 2f 73 62 69 |trailers| up./sbi|
|00003f60| 6e 2f 72 6f 75 74 65 20 | 61 64 64 20 24 36 20 24 |n/route |add $6 $|
|00003f70| 31 0a 23 69 6e 20 63 61 | 73 65 20 79 6f 75 20 68 |1.#in ca|se you h|
|00003f80| 61 76 65 20 61 6e 20 65 | 74 68 65 72 6e 65 74 20 |ave an e|thernet |
|00003f90| 63 61 72 64 20 74 68 69 | 73 20 77 69 6c 6c 20 61 |card thi|s will a|
|00003fa0| 6e 6e 6f 75 6e 63 65 20 | 74 68 65 20 73 6c 69 70 |nnounce |the slip|
|00003fb0| 20 63 6c 69 65 6e 74 0a | 23 78 78 3a 78 78 3a 78 | client.|#xx:xx:x|
|00003fc0| 78 3a 78 78 20 68 61 73 | 20 74 6f 20 62 65 20 72 |x:xx has| to be r|
|00003fd0| 65 70 6c 61 63 65 64 20 | 62 79 20 79 6f 75 72 20 |eplaced |by your |
|00003fe0| 68 61 72 64 77 61 72 65 | 20 61 64 64 72 65 73 73 |hardware| address|
|00003ff0| 0a 23 2f 73 62 69 6e 2f | 61 72 70 20 2d 73 20 24 |.#/sbin/|arp -s $|
|00004000| 36 20 78 78 3a 78 78 3a | 78 78 3a 78 78 20 70 75 |6 xx:xx:|xx:xx pu|
|00004010| 62 0a 65 78 69 74 20 30 | 0a 00 00 00 00 00 00 00 |b.exit 0|........|
|00004020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004200| 73 6c 69 70 6c 6f 67 69 | 6e 2f 73 6c 69 70 2e 68 |sliplogi|n/slip.h|
|00004210| 6f 73 74 73 00 00 00 00 | 00 00 00 00 00 00 00 00 |osts....|........|
|00004220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004260| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 36 |....1006|44 . 6|
|00004270| 32 35 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |25 . 1|44 . |
|00004280| 20 20 20 31 30 33 37 20 | 20 35 36 34 35 33 32 36 | 1037 | 5645326|
|00004290| 33 31 36 20 20 31 33 36 | 33 33 00 20 30 00 00 00 |316 136|33. 0...|
|000042a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004300| 00 75 73 74 61 72 20 20 | 00 67 6f 6c 64 74 00 00 |.ustar |.goldt..|
|00004310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004320| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00004330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004400| 23 0a 23 20 6c 6f 67 69 | 6e 09 6c 6f 63 61 6c 2d |#.# logi|n.local-|
|00004410| 61 64 64 72 09 09 72 65 | 6d 6f 74 65 2d 61 64 64 |addr..re|mote-add|
|00004420| 72 09 09 6e 65 74 6d 61 | 73 6b 09 09 6f 70 74 31 |r..netma|sk..opt1|
|00004430| 28 73 6c 69 70 6d 6f 64 | 65 29 09 6f 70 74 32 20 |(slipmod|e).opt2 |
|00004440| 2e 2e 2e 0a 23 20 76 61 | 6c 69 64 20 73 6c 69 70 |....# va|lid slip|
|00004450| 6d 6f 64 65 73 3a 20 6e | 6f 72 6d 61 6c 2c 63 6f |modes: n|ormal,co|
|00004460| 6d 70 72 65 73 73 65 64 | 2c 61 78 32 35 2c 36 62 |mpressed|,ax25,6b|
|00004470| 69 74 2c 61 75 74 6f 0a | 23 0a 23 20 45 78 61 6d |it,auto.|#.# Exam|
|00004480| 70 6c 65 3a 20 61 73 73 | 75 6d 65 20 6c 69 6e 75 |ple: ass|ume linu|
|00004490| 78 62 6f 78 27 73 20 49 | 50 20 69 73 20 31 33 30 |xbox's I|P is 130|
|000044a0| 2e 31 34 39 2e 31 2e 31 | 0a 23 20 20 20 20 20 20 |.149.1.1|.# |
|000044b0| 20 20 20 20 61 6e 64 20 | 62 72 69 64 67 65 2c 73 | and |bridge,s|
|000044c0| 70 61 63 65 20 61 6e 64 | 20 6c 61 62 20 61 72 65 |pace and| lab are|
|000044d0| 20 69 6e 20 2f 65 74 63 | 2f 68 6f 73 74 73 2e 0a | in /etc|/hosts..|
|000044e0| 23 20 20 20 20 20 20 20 | 20 20 20 73 6c 69 70 2c |# | slip,|
|000044f0| 63 73 6c 69 70 2c 53 6a | 69 6d 2c 53 73 70 6f 63 |cslip,Sj|im,Sspoc|
|00004500| 6b 20 61 6e 64 20 53 62 | 6f 6e 65 73 20 6e 65 65 |k and Sb|ones nee|
|00004510| 64 20 74 6f 20 62 65 20 | 69 6e 20 2f 65 74 63 2f |d to be |in /etc/|
|00004520| 70 61 73 73 77 64 0a 23 | 0a 73 6c 69 70 20 20 20 |passwd.#|.slip |
|00004530| 20 31 33 30 2e 31 34 39 | 2e 31 2e 31 09 09 31 33 | 130.149|.1.1..13|
|00004540| 30 2e 31 34 39 2e 31 2e | 31 30 30 09 30 78 66 66 |0.149.1.|100.0xff|
|00004550| 66 66 66 66 30 30 09 6e | 6f 72 6d 61 6c 0a 63 73 |ffff00.n|ormal.cs|
|00004560| 6c 69 70 20 20 20 31 33 | 30 2e 31 34 39 2e 31 2e |lip 13|0.149.1.|
|00004570| 31 09 09 31 33 30 2e 31 | 34 39 2e 31 2e 31 30 31 |1..130.1|49.1.101|
|00004580| 09 30 78 66 66 66 66 66 | 66 30 30 09 63 6f 6d 70 |.0xfffff|f00.comp|
|00004590| 72 65 73 73 65 64 0a 53 | 6a 69 6d 09 6c 69 6e 75 |ressed.S|jim.linu|
|000045a0| 78 62 6f 78 20 20 20 20 | 20 20 20 20 73 70 61 63 |xbox | spac|
|000045b0| 65 09 09 09 30 78 66 66 | 66 66 66 66 30 30 09 6e |e...0xff|ffff00.n|
|000045c0| 6f 72 6d 61 6c 0a 53 73 | 70 6f 63 6b 09 6c 69 6e |ormal.Ss|pock.lin|
|000045d0| 75 78 62 6f 78 09 09 44 | 59 4e 41 4d 49 43 09 09 |uxbox..D|YNAMIC..|
|000045e0| 09 30 78 66 66 66 66 66 | 66 30 30 09 63 6f 6d 70 |.0xfffff|f00.comp|
|000045f0| 72 65 73 73 65 64 0a 53 | 62 6f 6e 65 73 09 6c 69 |ressed.S|bones.li|
|00004600| 6e 75 78 62 6f 78 09 09 | 6c 61 62 09 09 09 09 30 |nuxbox..|lab....0|
|00004610| 78 66 66 66 66 66 66 30 | 30 09 61 75 74 6f 0a 00 |xffffff0|0.auto..|
|00004620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004800| 73 6c 69 70 6c 6f 67 69 | 6e 2f 73 6c 69 70 6c 6f |sliplogi|n/sliplo|
|00004810| 67 69 6e 2e 38 00 00 00 | 00 00 00 00 00 00 00 00 |gin.8...|........|
|00004820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004860| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 36 |....1006|44 . 6|
|00004870| 32 35 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |25 . 1|44 . |
|00004880| 20 20 31 36 36 30 37 20 | 20 36 30 30 37 32 36 36 | 16607 | 6007266|
|00004890| 36 32 34 20 20 31 33 37 | 32 32 00 20 30 00 00 00 |624 137|22. 0...|
|000048a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004900| 00 75 73 74 61 72 20 20 | 00 67 6f 6c 64 74 00 00 |.ustar |.goldt..|
|00004910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004920| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00004930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a00| 2e 5c 22 20 43 6f 70 79 | 72 69 67 68 74 20 28 63 |.\" Copy|right (c|
|00004a10| 29 20 31 39 39 30 2c 20 | 31 39 39 31 20 54 68 65 |) 1990, |1991 The|
|00004a20| 20 52 65 67 65 6e 74 73 | 20 6f 66 20 74 68 65 20 | Regents| of the |
|00004a30| 55 6e 69 76 65 72 73 69 | 74 79 20 6f 66 20 43 61 |Universi|ty of Ca|
|00004a40| 6c 69 66 6f 72 6e 69 61 | 2e 0a 2e 5c 22 20 41 6c |lifornia|...\" Al|
|00004a50| 6c 20 72 69 67 68 74 73 | 20 72 65 73 65 72 76 65 |l rights| reserve|
|00004a60| 64 2e 0a 2e 5c 22 0a 2e | 5c 22 20 52 65 64 69 73 |d...\"..|\" Redis|
|00004a70| 74 72 69 62 75 74 69 6f | 6e 20 61 6e 64 20 75 73 |tributio|n and us|
|00004a80| 65 20 69 6e 20 73 6f 75 | 72 63 65 20 61 6e 64 20 |e in sou|rce and |
|00004a90| 62 69 6e 61 72 79 20 66 | 6f 72 6d 73 2c 20 77 69 |binary f|orms, wi|
|00004aa0| 74 68 20 6f 72 20 77 69 | 74 68 6f 75 74 0a 2e 5c |th or wi|thout..\|
|00004ab0| 22 20 6d 6f 64 69 66 69 | 63 61 74 69 6f 6e 2c 20 |" modifi|cation, |
|00004ac0| 61 72 65 20 70 65 72 6d | 69 74 74 65 64 20 70 72 |are perm|itted pr|
|00004ad0| 6f 76 69 64 65 64 20 74 | 68 61 74 20 74 68 65 20 |ovided t|hat the |
|00004ae0| 66 6f 6c 6c 6f 77 69 6e | 67 20 63 6f 6e 64 69 74 |followin|g condit|
|00004af0| 69 6f 6e 73 0a 2e 5c 22 | 20 61 72 65 20 6d 65 74 |ions..\"| are met|
|00004b00| 3a 0a 2e 5c 22 20 31 2e | 20 52 65 64 69 73 74 72 |:..\" 1.| Redistr|
|00004b10| 69 62 75 74 69 6f 6e 73 | 20 6f 66 20 73 6f 75 72 |ibutions| of sour|
|00004b20| 63 65 20 63 6f 64 65 20 | 6d 75 73 74 20 72 65 74 |ce code |must ret|
|00004b30| 61 69 6e 20 74 68 65 20 | 61 62 6f 76 65 20 63 6f |ain the |above co|
|00004b40| 70 79 72 69 67 68 74 0a | 2e 5c 22 20 20 20 20 6e |pyright.|.\" n|
|00004b50| 6f 74 69 63 65 2c 20 74 | 68 69 73 20 6c 69 73 74 |otice, t|his list|
|00004b60| 20 6f 66 20 63 6f 6e 64 | 69 74 69 6f 6e 73 20 61 | of cond|itions a|
|00004b70| 6e 64 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |nd the f|ollowing|
|00004b80| 20 64 69 73 63 6c 61 69 | 6d 65 72 2e 0a 2e 5c 22 | disclai|mer...\"|
|00004b90| 20 32 2e 20 52 65 64 69 | 73 74 72 69 62 75 74 69 | 2. Redi|stributi|
|00004ba0| 6f 6e 73 20 69 6e 20 62 | 69 6e 61 72 79 20 66 6f |ons in b|inary fo|
|00004bb0| 72 6d 20 6d 75 73 74 20 | 72 65 70 72 6f 64 75 63 |rm must |reproduc|
|00004bc0| 65 20 74 68 65 20 61 62 | 6f 76 65 20 63 6f 70 79 |e the ab|ove copy|
|00004bd0| 72 69 67 68 74 0a 2e 5c | 22 20 20 20 20 6e 6f 74 |right..\|" not|
|00004be0| 69 63 65 2c 20 74 68 69 | 73 20 6c 69 73 74 20 6f |ice, thi|s list o|
|00004bf0| 66 20 63 6f 6e 64 69 74 | 69 6f 6e 73 20 61 6e 64 |f condit|ions and|
|00004c00| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 64 | the fol|lowing d|
|00004c10| 69 73 63 6c 61 69 6d 65 | 72 20 69 6e 20 74 68 65 |isclaime|r in the|
|00004c20| 0a 2e 5c 22 20 20 20 20 | 64 6f 63 75 6d 65 6e 74 |..\" |document|
|00004c30| 61 74 69 6f 6e 20 61 6e | 64 2f 6f 72 20 6f 74 68 |ation an|d/or oth|
|00004c40| 65 72 20 6d 61 74 65 72 | 69 61 6c 73 20 70 72 6f |er mater|ials pro|
|00004c50| 76 69 64 65 64 20 77 69 | 74 68 20 74 68 65 20 64 |vided wi|th the d|
|00004c60| 69 73 74 72 69 62 75 74 | 69 6f 6e 2e 0a 2e 5c 22 |istribut|ion...\"|
|00004c70| 20 33 2e 20 41 6c 6c 20 | 61 64 76 65 72 74 69 73 | 3. All |advertis|
|00004c80| 69 6e 67 20 6d 61 74 65 | 72 69 61 6c 73 20 6d 65 |ing mate|rials me|
|00004c90| 6e 74 69 6f 6e 69 6e 67 | 20 66 65 61 74 75 72 65 |ntioning| feature|
|00004ca0| 73 20 6f 72 20 75 73 65 | 20 6f 66 20 74 68 69 73 |s or use| of this|
|00004cb0| 20 73 6f 66 74 77 61 72 | 65 0a 2e 5c 22 20 20 20 | softwar|e..\" |
|00004cc0| 20 6d 75 73 74 20 64 69 | 73 70 6c 61 79 20 74 68 | must di|splay th|
|00004cd0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 61 63 6b 6e |e follow|ing ackn|
|00004ce0| 6f 77 6c 65 64 67 65 6d | 65 6e 74 3a 0a 2e 5c 22 |owledgem|ent:..\"|
|00004cf0| 09 54 68 69 73 20 70 72 | 6f 64 75 63 74 20 69 6e |.This pr|oduct in|
|00004d00| 63 6c 75 64 65 73 20 73 | 6f 66 74 77 61 72 65 20 |cludes s|oftware |
|00004d10| 64 65 76 65 6c 6f 70 65 | 64 20 62 79 20 74 68 65 |develope|d by the|
|00004d20| 20 55 6e 69 76 65 72 73 | 69 74 79 20 6f 66 0a 2e | Univers|ity of..|
|00004d30| 5c 22 09 43 61 6c 69 66 | 6f 72 6e 69 61 2c 20 42 |\".Calif|ornia, B|
|00004d40| 65 72 6b 65 6c 65 79 20 | 61 6e 64 20 69 74 73 20 |erkeley |and its |
|00004d50| 63 6f 6e 74 72 69 62 75 | 74 6f 72 73 2e 0a 2e 5c |contribu|tors...\|
|00004d60| 22 20 34 2e 20 4e 65 69 | 74 68 65 72 20 74 68 65 |" 4. Nei|ther the|
|00004d70| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 55 6e 69 | name of| the Uni|
|00004d80| 76 65 72 73 69 74 79 20 | 6e 6f 72 20 74 68 65 20 |versity |nor the |
|00004d90| 6e 61 6d 65 73 20 6f 66 | 20 69 74 73 20 63 6f 6e |names of| its con|
|00004da0| 74 72 69 62 75 74 6f 72 | 73 0a 2e 5c 22 20 20 20 |tributor|s..\" |
|00004db0| 20 6d 61 79 20 62 65 20 | 75 73 65 64 20 74 6f 20 | may be |used to |
|00004dc0| 65 6e 64 6f 72 73 65 20 | 6f 72 20 70 72 6f 6d 6f |endorse |or promo|
|00004dd0| 74 65 20 70 72 6f 64 75 | 63 74 73 20 64 65 72 69 |te produ|cts deri|
|00004de0| 76 65 64 20 66 72 6f 6d | 20 74 68 69 73 20 73 6f |ved from| this so|
|00004df0| 66 74 77 61 72 65 0a 2e | 5c 22 20 20 20 20 77 69 |ftware..|\" wi|
|00004e00| 74 68 6f 75 74 20 73 70 | 65 63 69 66 69 63 20 70 |thout sp|ecific p|
|00004e10| 72 69 6f 72 20 77 72 69 | 74 74 65 6e 20 70 65 72 |rior wri|tten per|
|00004e20| 6d 69 73 73 69 6f 6e 2e | 0a 2e 5c 22 0a 2e 5c 22 |mission.|..\"..\"|
|00004e30| 20 54 48 49 53 20 53 4f | 46 54 57 41 52 45 20 49 | THIS SO|FTWARE I|
|00004e40| 53 20 50 52 4f 56 49 44 | 45 44 20 42 59 20 54 48 |S PROVID|ED BY TH|
|00004e50| 45 20 52 45 47 45 4e 54 | 53 20 41 4e 44 20 43 4f |E REGENT|S AND CO|
|00004e60| 4e 54 52 49 42 55 54 4f | 52 53 20 60 60 41 53 20 |NTRIBUTO|RS ``AS |
|00004e70| 49 53 27 27 20 41 4e 44 | 0a 2e 5c 22 20 41 4e 59 |IS'' AND|..\" ANY|
|00004e80| 20 45 58 50 52 45 53 53 | 20 4f 52 20 49 4d 50 4c | EXPRESS| OR IMPL|
|00004e90| 49 45 44 20 57 41 52 52 | 41 4e 54 49 45 53 2c 20 |IED WARR|ANTIES, |
|00004ea0| 49 4e 43 4c 55 44 49 4e | 47 2c 20 42 55 54 20 4e |INCLUDIN|G, BUT N|
|00004eb0| 4f 54 20 4c 49 4d 49 54 | 45 44 20 54 4f 2c 20 54 |OT LIMIT|ED TO, T|
|00004ec0| 48 45 0a 2e 5c 22 20 49 | 4d 50 4c 49 45 44 20 57 |HE..\" I|MPLIED W|
|00004ed0| 41 52 52 41 4e 54 49 45 | 53 20 4f 46 20 4d 45 52 |ARRANTIE|S OF MER|
|00004ee0| 43 48 41 4e 54 41 42 49 | 4c 49 54 59 20 41 4e 44 |CHANTABI|LITY AND|
|00004ef0| 20 46 49 54 4e 45 53 53 | 20 46 4f 52 20 41 20 50 | FITNESS| FOR A P|
|00004f00| 41 52 54 49 43 55 4c 41 | 52 20 50 55 52 50 4f 53 |ARTICULA|R PURPOS|
|00004f10| 45 0a 2e 5c 22 20 41 52 | 45 20 44 49 53 43 4c 41 |E..\" AR|E DISCLA|
|00004f20| 49 4d 45 44 2e 20 20 49 | 4e 20 4e 4f 20 45 56 45 |IMED. I|N NO EVE|
|00004f30| 4e 54 20 53 48 41 4c 4c | 20 54 48 45 20 52 45 47 |NT SHALL| THE REG|
|00004f40| 45 4e 54 53 20 4f 52 20 | 43 4f 4e 54 52 49 42 55 |ENTS OR |CONTRIBU|
|00004f50| 54 4f 52 53 20 42 45 20 | 4c 49 41 42 4c 45 0a 2e |TORS BE |LIABLE..|
|00004f60| 5c 22 20 46 4f 52 20 41 | 4e 59 20 44 49 52 45 43 |\" FOR A|NY DIREC|
|00004f70| 54 2c 20 49 4e 44 49 52 | 45 43 54 2c 20 49 4e 43 |T, INDIR|ECT, INC|
|00004f80| 49 44 45 4e 54 41 4c 2c | 20 53 50 45 43 49 41 4c |IDENTAL,| SPECIAL|
|00004f90| 2c 20 45 58 45 4d 50 4c | 41 52 59 2c 20 4f 52 20 |, EXEMPL|ARY, OR |
|00004fa0| 43 4f 4e 53 45 51 55 45 | 4e 54 49 41 4c 0a 2e 5c |CONSEQUE|NTIAL..\|
|00004fb0| 22 20 44 41 4d 41 47 45 | 53 20 28 49 4e 43 4c 55 |" DAMAGE|S (INCLU|
|00004fc0| 44 49 4e 47 2c 20 42 55 | 54 20 4e 4f 54 20 4c 49 |DING, BU|T NOT LI|
|00004fd0| 4d 49 54 45 44 20 54 4f | 2c 20 50 52 4f 43 55 52 |MITED TO|, PROCUR|
|00004fe0| 45 4d 45 4e 54 20 4f 46 | 20 53 55 42 53 54 49 54 |EMENT OF| SUBSTIT|
|00004ff0| 55 54 45 20 47 4f 4f 44 | 53 0a 2e 5c 22 20 4f 52 |UTE GOOD|S..\" OR|
|00005000| 20 53 45 52 56 49 43 45 | 53 3b 20 4c 4f 53 53 20 | SERVICE|S; LOSS |
|00005010| 4f 46 20 55 53 45 2c 20 | 44 41 54 41 2c 20 4f 52 |OF USE, |DATA, OR|
|00005020| 20 50 52 4f 46 49 54 53 | 3b 20 4f 52 20 42 55 53 | PROFITS|; OR BUS|
|00005030| 49 4e 45 53 53 20 49 4e | 54 45 52 52 55 50 54 49 |INESS IN|TERRUPTI|
|00005040| 4f 4e 29 0a 2e 5c 22 20 | 48 4f 57 45 56 45 52 20 |ON)..\" |HOWEVER |
|00005050| 43 41 55 53 45 44 20 41 | 4e 44 20 4f 4e 20 41 4e |CAUSED A|ND ON AN|
|00005060| 59 20 54 48 45 4f 52 59 | 20 4f 46 20 4c 49 41 42 |Y THEORY| OF LIAB|
|00005070| 49 4c 49 54 59 2c 20 57 | 48 45 54 48 45 52 20 49 |ILITY, W|HETHER I|
|00005080| 4e 20 43 4f 4e 54 52 41 | 43 54 2c 20 53 54 52 49 |N CONTRA|CT, STRI|
|00005090| 43 54 0a 2e 5c 22 20 4c | 49 41 42 49 4c 49 54 59 |CT..\" L|IABILITY|
|000050a0| 2c 20 4f 52 20 54 4f 52 | 54 20 28 49 4e 43 4c 55 |, OR TOR|T (INCLU|
|000050b0| 44 49 4e 47 20 4e 45 47 | 4c 49 47 45 4e 43 45 20 |DING NEG|LIGENCE |
|000050c0| 4f 52 20 4f 54 48 45 52 | 57 49 53 45 29 20 41 52 |OR OTHER|WISE) AR|
|000050d0| 49 53 49 4e 47 20 49 4e | 20 41 4e 59 20 57 41 59 |ISING IN| ANY WAY|
|000050e0| 0a 2e 5c 22 20 4f 55 54 | 20 4f 46 20 54 48 45 20 |..\" OUT| OF THE |
|000050f0| 55 53 45 20 4f 46 20 54 | 48 49 53 20 53 4f 46 54 |USE OF T|HIS SOFT|
|00005100| 57 41 52 45 2c 20 45 56 | 45 4e 20 49 46 20 41 44 |WARE, EV|EN IF AD|
|00005110| 56 49 53 45 44 20 4f 46 | 20 54 48 45 20 50 4f 53 |VISED OF| THE POS|
|00005120| 53 49 42 49 4c 49 54 59 | 20 4f 46 0a 2e 5c 22 20 |SIBILITY| OF..\" |
|00005130| 53 55 43 48 20 44 41 4d | 41 47 45 2e 0a 2e 5c 22 |SUCH DAM|AGE...\"|
|00005140| 0a 2e 5c 22 20 20 20 20 | 20 66 72 6f 6d 3a 20 40 |..\" | from: @|
|00005150| 28 23 29 73 6c 69 70 6c | 6f 67 69 6e 2e 38 09 35 |(#)slipl|ogin.8.5|
|00005160| 2e 34 20 28 42 65 72 6b | 65 6c 65 79 29 20 38 2f |.4 (Berk|eley) 8/|
|00005170| 35 2f 39 31 0a 2e 5c 22 | 09 24 49 64 3a 20 73 6c |5/91..\"|.$Id: sl|
|00005180| 69 70 6c 6f 67 69 6e 2e | 38 2c 76 20 31 2e 36 2e |iplogin.|8,v 1.6.|
|00005190| 31 20 31 39 39 35 2f 30 | 31 2f 30 38 20 31 34 3a |1 1995/0|1/08 14:|
|000051a0| 31 38 3a 30 34 20 63 67 | 64 20 45 78 70 20 24 0a |18:04 cg|d Exp $.|
|000051b0| 2e 5c 22 0a 2e 44 64 20 | 41 75 67 75 73 74 20 2c |.\"..Dd |August ,|
|000051c0| 20 31 39 39 35 0a 2e 44 | 74 20 53 4c 49 50 4c 4f | 1995..D|t SLIPLO|
|000051d0| 47 49 4e 20 38 0a 2e 4f | 73 0a 2e 53 68 20 4e 41 |GIN 8..O|s..Sh NA|
|000051e0| 4d 45 0a 2e 4e 6d 20 73 | 6c 69 70 6c 6f 67 69 6e |ME..Nm s|liplogin|
|000051f0| 0a 2e 4e 64 20 61 74 74 | 61 63 68 20 61 20 73 65 |..Nd att|ach a se|
|00005200| 72 69 61 6c 20 6c 69 6e | 65 20 6e 65 74 77 6f 72 |rial lin|e networ|
|00005210| 6b 20 69 6e 74 65 72 66 | 61 63 65 0a 2e 53 68 20 |k interf|ace..Sh |
|00005220| 53 59 4e 4f 50 53 49 53 | 0a 2e 4e 6d 20 73 6c 69 |SYNOPSIS|..Nm sli|
|00005230| 70 6c 6f 67 69 6e 0a 2e | 4f 70 20 41 72 20 6c 6f |plogin..|Op Ar lo|
|00005240| 67 69 6e 6e 61 6d 65 0a | 2e 53 68 20 44 45 53 43 |ginname.|.Sh DESC|
|00005250| 52 49 50 54 49 4f 4e 0a | 2e 4e 6d 20 53 6c 69 70 |RIPTION.|.Nm Slip|
|00005260| 6c 6f 67 69 6e 0a 69 73 | 20 75 73 65 64 20 74 6f |login.is| used to|
|00005270| 20 74 75 72 6e 20 74 68 | 65 20 74 65 72 6d 69 6e | turn th|e termin|
|00005280| 61 6c 20 6c 69 6e 65 20 | 6f 6e 20 73 74 61 6e 64 |al line |on stand|
|00005290| 61 72 64 20 69 6e 70 75 | 74 20 69 6e 74 6f 0a 61 |ard inpu|t into.a|
|000052a0| 20 53 65 72 69 61 6c 20 | 4c 69 6e 65 20 49 50 0a | Serial |Line IP.|
|000052b0| 2e 50 71 20 54 6e 20 53 | 4c 49 50 0a 6c 69 6e 6b |.Pq Tn S|LIP.link|
|000052c0| 20 74 6f 20 61 20 72 65 | 6d 6f 74 65 20 68 6f 73 | to a re|mote hos|
|000052d0| 74 2e 20 20 54 6f 20 64 | 6f 20 74 68 69 73 2c 20 |t. To d|o this, |
|000052e0| 74 68 65 20 70 72 6f 67 | 72 61 6d 0a 73 65 61 72 |the prog|ram.sear|
|000052f0| 63 68 65 73 20 74 68 65 | 20 66 69 6c 65 0a 2e 50 |ches the| file..P|
|00005300| 61 20 2f 65 74 63 2f 73 | 6c 69 70 2e 68 6f 73 74 |a /etc/s|lip.host|
|00005310| 73 0a 66 6f 72 20 61 6e | 20 65 6e 74 72 79 20 6d |s.for an| entry m|
|00005320| 61 74 63 68 69 6e 67 0a | 2e 41 72 20 6c 6f 67 69 |atching.|.Ar logi|
|00005330| 6e 6e 61 6d 65 0a 28 77 | 68 69 63 68 20 64 65 66 |nname.(w|hich def|
|00005340| 61 75 6c 74 73 20 74 6f | 20 74 68 65 20 63 75 72 |aults to| the cur|
|00005350| 72 65 6e 74 20 6c 6f 67 | 69 6e 20 6e 61 6d 65 20 |rent log|in name |
|00005360| 69 66 20 6f 6d 69 74 74 | 65 64 29 2e 0a 54 68 65 |if omitt|ed)..The|
|00005370| 20 6c 6f 67 69 6e 6e 61 | 6d 65 20 27 2a 27 20 69 | loginna|me '*' i|
|00005380| 6e 20 73 6c 69 70 2e 68 | 6f 73 74 73 20 6d 61 74 |n slip.h|osts mat|
|00005390| 63 68 65 73 20 65 76 65 | 72 79 20 75 73 65 72 20 |ches eve|ry user |
|000053a0| 73 6f 20 65 76 65 72 79 | 6f 6e 65 0a 77 68 6f 20 |so every|one.who |
|000053b0| 63 61 6e 20 65 78 65 63 | 75 74 65 20 73 6c 69 70 |can exec|ute slip|
|000053c0| 6c 6f 67 69 6e 20 61 6e | 64 20 69 73 20 6e 6f 74 |login an|d is not|
|000053d0| 20 6c 69 73 74 65 64 20 | 69 6e 20 73 6c 69 70 2e | listed |in slip.|
|000053e0| 68 6f 73 74 73 20 77 69 | 6c 6c 20 75 73 65 0a 74 |hosts wi|ll use.t|
|000053f0| 68 69 73 20 64 65 66 61 | 75 6c 74 20 65 6e 74 72 |his defa|ult entr|
|00005400| 79 2e 20 49 66 20 79 6f | 75 20 72 65 61 6c 6c 79 |y. If yo|u really|
|00005410| 20 6e 65 65 64 20 61 20 | 64 65 66 61 75 6c 74 20 | need a |default |
|00005420| 75 73 65 72 2c 20 70 6c | 65 61 73 65 20 70 75 74 |user, pl|ease put|
|00005430| 20 74 68 69 73 0a 65 6e | 74 72 79 20 61 74 20 74 | this.en|try at t|
|00005440| 68 65 20 6c 61 73 74 20 | 6c 69 6e 65 20 69 6e 20 |he last |line in |
|00005450| 73 6c 69 70 2e 68 6f 73 | 74 73 2c 20 73 6f 20 69 |slip.hos|ts, so i|
|00005460| 74 20 77 69 6c 6c 20 62 | 65 20 75 73 65 64 20 69 |t will b|e used i|
|00005470| 66 20 74 68 65 20 73 6c | 69 70 6c 6f 67 69 6e 0a |f the sl|iplogin.|
|00005480| 75 73 65 72 20 69 73 20 | 6e 6f 74 20 6c 69 73 74 |user is |not list|
|00005490| 65 64 20 69 6e 20 73 6c | 69 70 2e 68 6f 73 74 73 |ed in sl|ip.hosts|
|000054a0| 2e 20 49 66 20 79 6f 75 | 20 70 75 74 20 74 68 65 |. If you| put the|
|000054b0| 20 64 65 66 61 75 6c 74 | 20 75 73 65 72 20 61 73 | default| user as|
|000054c0| 0a 66 69 72 73 74 20 65 | 6e 74 72 79 20 69 6e 20 |.first e|ntry in |
|000054d0| 73 6c 69 70 2e 68 6f 73 | 74 73 20 61 6c 6c 20 6f |slip.hos|ts all o|
|000054e0| 74 68 65 72 20 65 6e 74 | 72 69 65 73 20 77 69 6c |ther ent|ries wil|
|000054f0| 6c 20 62 65 20 69 67 6e | 6f 72 65 64 2e 0a 49 66 |l be ign|ored..If|
|00005500| 20 61 20 6d 61 74 63 68 | 69 6e 67 20 65 6e 74 72 | a match|ing entr|
|00005510| 79 20 69 73 20 66 6f 75 | 6e 64 2c 20 74 68 65 20 |y is fou|nd, the |
|00005520| 6c 69 6e 65 20 69 73 20 | 63 6f 6e 66 69 67 75 72 |line is |configur|
|00005530| 65 64 20 61 70 70 72 6f | 70 72 69 61 74 65 6c 79 |ed appro|priately|
|00005540| 0a 66 6f 72 20 73 6c 69 | 70 20 28 38 2d 62 69 74 |.for sli|p (8-bit|
|00005550| 20 74 72 61 6e 73 70 61 | 72 65 6e 74 20 69 2f 6f | transpa|rent i/o|
|00005560| 29 20 61 6e 64 20 63 6f | 6e 76 65 72 74 65 64 20 |) and co|nverted |
|00005570| 74 6f 0a 2e 54 6e 20 53 | 4c 49 50 0a 6c 69 6e 65 |to..Tn S|LIP.line|
|00005580| 0a 64 69 73 63 69 70 6c | 69 6e 65 2e 20 20 54 68 |.discipl|ine. Th|
|00005590| 65 6e 20 61 20 73 68 65 | 6c 6c 20 73 63 72 69 70 |en a she|ll scrip|
|000055a0| 74 20 28 73 6c 69 70 2e | 6c 6f 67 69 6e 29 20 69 |t (slip.|login) i|
|000055b0| 73 20 69 6e 76 6f 6b 65 | 64 20 74 6f 20 69 6e 69 |s invoke|d to ini|
|000055c0| 74 69 61 6c 69 7a 65 0a | 74 68 65 20 73 6c 69 70 |tialize.|the slip|
|000055d0| 20 69 6e 74 65 72 66 61 | 63 65 20 77 69 74 68 20 | interfa|ce with |
|000055e0| 74 68 65 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 |the appr|opriate |
|000055f0| 6c 6f 63 61 6c 20 61 6e | 64 20 72 65 6d 6f 74 65 |local an|d remote|
|00005600| 0a 2e 54 6e 20 49 50 0a | 61 64 64 72 65 73 73 2c |..Tn IP.|address,|
|00005610| 0a 6e 65 74 6d 61 73 6b | 2c 20 65 74 63 2e 0a 2e |.netmask|, etc...|
|00005620| 50 70 0a 54 68 65 20 75 | 73 75 61 6c 20 69 6e 69 |Pp.The u|sual ini|
|00005630| 74 69 61 6c 69 7a 61 74 | 69 6f 6e 20 73 63 72 69 |tializat|ion scri|
|00005640| 70 74 20 69 73 0a 2e 50 | 61 20 2f 65 74 63 2f 73 |pt is..P|a /etc/s|
|00005650| 6c 69 70 2e 6c 6f 67 69 | 6e 0a 62 75 74 2c 20 69 |lip.logi|n.but, i|
|00005660| 66 20 70 61 72 74 69 63 | 75 6c 61 72 20 68 6f 73 |f partic|ular hos|
|00005670| 74 73 20 6e 65 65 64 20 | 73 70 65 63 69 61 6c 20 |ts need |special |
|00005680| 69 6e 69 74 69 61 6c 69 | 7a 61 74 69 6f 6e 2c 20 |initiali|zation, |
|00005690| 74 68 65 20 66 69 6c 65 | 0a 2e 50 61 20 2f 65 74 |the file|..Pa /et|
|000056a0| 63 2f 73 6c 69 70 2e 6c | 6f 67 69 6e 2e 20 4e 73 |c/slip.l|ogin. Ns|
|000056b0| 20 41 72 20 6c 6f 67 69 | 6e 6e 61 6d 65 0a 77 69 | Ar logi|nname.wi|
|000056c0| 6c 6c 20 62 65 20 65 78 | 65 63 75 74 65 64 20 69 |ll be ex|ecuted i|
|000056d0| 6e 73 74 65 61 64 20 69 | 66 20 69 74 20 65 78 69 |nstead i|f it exi|
|000056e0| 73 74 73 2e 0a 49 66 20 | 79 6f 75 20 75 73 65 20 |sts..If |you use |
|000056f0| 74 68 65 20 64 65 66 61 | 75 6c 74 20 75 73 65 72 |the defa|ult user|
|00005700| 20 27 2a 27 20 73 6c 69 | 70 6c 6f 67 69 6e 20 6c | '*' sli|plogin l|
|00005710| 6f 6f 6b 73 20 66 6f 72 | 20 73 6c 69 70 2e 6c 6f |ooks for| slip.lo|
|00005720| 67 69 6e 2e 2a 2c 0a 62 | 75 74 20 27 2a 27 20 69 |gin.*,.b|ut '*' i|
|00005730| 73 20 6e 6f 74 20 75 73 | 65 64 20 61 73 20 61 20 |s not us|ed as a |
|00005740| 77 69 6c 64 63 61 72 64 | 2e 20 49 66 20 6e 6f 20 |wildcard|. If no |
|00005750| 73 6c 69 70 2e 6c 6f 67 | 69 6e 2e 2a 20 65 78 69 |slip.log|in.* exi|
|00005760| 73 74 73 2c 0a 74 68 65 | 20 75 73 75 61 6c 20 73 |sts,.the| usual s|
|00005770| 6c 69 70 2e 6c 6f 67 69 | 6e 20 77 69 6c 6c 20 62 |lip.logi|n will b|
|00005780| 65 20 75 73 65 64 2e 0a | 54 68 65 20 73 63 72 69 |e used..|The scri|
|00005790| 70 74 20 69 73 20 69 6e | 76 6f 6b 65 64 20 77 69 |pt is in|voked wi|
|000057a0| 74 68 20 74 68 65 20 70 | 61 72 61 6d 65 74 65 72 |th the p|arameter|
|000057b0| 73 0a 2e 42 6c 20 2d 74 | 61 67 20 2d 77 69 64 74 |s..Bl -t|ag -widt|
|000057c0| 68 20 73 6c 69 70 75 6e | 69 74 0a 2e 49 74 20 45 |h slipun|it..It E|
|000057d0| 6d 20 73 6c 69 70 75 6e | 69 74 0a 54 68 65 20 75 |m slipun|it.The u|
|000057e0| 6e 69 74 20 69 64 65 6e | 74 69 66 69 65 72 20 6f |nit iden|tifier o|
|000057f0| 66 20 74 68 65 20 73 6c | 69 70 20 69 6e 74 65 72 |f the sl|ip inter|
|00005800| 66 61 63 65 20 61 73 73 | 69 67 6e 65 64 20 74 6f |face ass|igned to|
|00005810| 20 74 68 69 73 20 6c 69 | 6e 65 2e 20 20 45 2e 67 | this li|ne. E.g|
|00005820| 2e 2c 0a 2e 53 79 20 73 | 6c 30 20 2e 0a 2e 49 74 |.,..Sy s|l0 ...It|
|00005830| 20 45 6d 20 73 70 65 65 | 64 0a 54 68 65 20 73 70 | Em spee|d.The sp|
|00005840| 65 65 64 20 6f 66 20 74 | 68 65 20 6c 69 6e 65 2e |eed of t|he line.|
|00005850| 0a 2e 49 74 20 45 6d 20 | 70 69 64 0a 54 68 65 20 |..It Em |pid.The |
|00005860| 70 72 6f 63 65 73 73 20 | 69 64 20 6f 66 20 73 6c |process |id of sl|
|00005870| 69 70 6c 6f 67 69 6e 2e | 0a 2e 49 74 20 45 6d 20 |iplogin.|..It Em |
|00005880| 61 72 67 73 0a 54 68 65 | 20 61 72 67 75 6d 65 6e |args.The| argumen|
|00005890| 74 73 20 66 72 6f 6d 20 | 74 68 65 0a 2e 50 61 20 |ts from |the..Pa |
|000058a0| 2f 65 74 63 2f 73 6c 69 | 70 2e 68 6f 73 74 73 0a |/etc/sli|p.hosts.|
|000058b0| 65 6e 74 72 79 2c 20 69 | 6e 20 6f 72 64 65 72 20 |entry, i|n order |
|000058c0| 73 74 61 72 74 69 6e 67 | 20 77 69 74 68 0a 2e 41 |starting| with..A|
|000058d0| 72 20 6c 6f 67 69 6e 6e | 61 6d 65 20 2e 0a 2e 45 |r loginn|ame ...E|
|000058e0| 6c 0a 2e 50 70 0a 4f 6e | 6c 79 20 74 68 65 20 73 |l..Pp.On|ly the s|
|000058f0| 75 70 65 72 2d 75 73 65 | 72 20 6d 61 79 20 61 74 |uper-use|r may at|
|00005900| 74 61 63 68 20 61 20 6e | 65 74 77 6f 72 6b 20 69 |tach a n|etwork i|
|00005910| 6e 74 65 72 66 61 63 65 | 2e 20 20 54 68 65 20 69 |nterface|. The i|
|00005920| 6e 74 65 72 66 61 63 65 | 20 69 73 0a 61 75 74 6f |nterface| is.auto|
|00005930| 6d 61 74 69 63 61 6c 6c | 79 20 64 65 74 61 63 68 |maticall|y detach|
|00005940| 65 64 20 77 68 65 6e 20 | 74 68 65 20 6f 74 68 65 |ed when |the othe|
|00005950| 72 20 65 6e 64 20 68 61 | 6e 67 73 20 75 70 20 6f |r end ha|ngs up o|
|00005960| 72 20 74 68 65 0a 2e 4e | 6d 20 73 6c 69 70 6c 6f |r the..N|m sliplo|
|00005970| 67 69 6e 0a 70 72 6f 63 | 65 73 73 20 64 69 65 73 |gin.proc|ess dies|
|00005980| 2e 20 20 49 66 20 74 68 | 65 20 6b 65 72 6e 65 6c |. If th|e kernel|
|00005990| 20 73 6c 69 70 0a 6d 6f | 64 75 6c 65 20 68 61 73 | slip.mo|dule has|
|000059a0| 20 62 65 65 6e 20 63 6f | 6e 66 69 67 75 72 65 64 | been co|nfigured|
|000059b0| 20 66 6f 72 20 69 74 2c | 20 61 6c 6c 20 72 6f 75 | for it,| all rou|
|000059c0| 74 65 73 20 74 68 72 6f | 75 67 68 20 74 68 61 74 |tes thro|ugh that|
|000059d0| 20 69 6e 74 65 72 66 61 | 63 65 20 77 69 6c 6c 0a | interfa|ce will.|
|000059e0| 61 6c 73 6f 20 64 69 73 | 61 70 70 65 61 72 20 61 |also dis|appear a|
|000059f0| 74 20 74 68 65 20 73 61 | 6d 65 20 74 69 6d 65 2e |t the sa|me time.|
|00005a00| 20 20 49 66 20 74 68 65 | 72 65 20 69 73 20 6f 74 | If the|re is ot|
|00005a10| 68 65 72 20 70 72 6f 63 | 65 73 73 69 6e 67 20 61 |her proc|essing a|
|00005a20| 20 73 69 74 65 0a 77 6f | 75 6c 64 20 6c 69 6b 65 | site.wo|uld like|
|00005a30| 20 64 6f 6e 65 20 6f 6e | 20 68 61 6e 67 75 70 2c | done on| hangup,|
|00005a40| 20 74 68 65 20 66 69 6c | 65 0a 2e 50 61 20 2f 65 | the fil|e..Pa /e|
|00005a50| 74 63 2f 73 6c 69 70 2e | 6c 6f 67 6f 75 74 0a 6f |tc/slip.|logout.o|
|00005a60| 72 0a 2e 50 61 20 2f 65 | 74 63 2f 73 6c 69 70 2e |r..Pa /e|tc/slip.|
|00005a70| 6c 6f 67 6f 75 74 2e 20 | 4e 73 20 41 72 20 6c 6f |logout. |Ns Ar lo|
|00005a80| 67 69 6e 6e 61 6d 65 0a | 69 73 20 65 78 65 63 75 |ginname.|is execu|
|00005a90| 74 65 64 20 69 66 20 69 | 74 20 65 78 69 73 74 73 |ted if i|t exists|
|00005aa0| 2e 20 20 49 74 20 69 73 | 20 67 69 76 65 6e 20 74 |. It is| given t|
|00005ab0| 68 65 20 73 61 6d 65 20 | 61 72 67 75 6d 65 6e 74 |he same |argument|
|00005ac0| 73 20 61 73 20 74 68 65 | 20 6c 6f 67 69 6e 20 73 |s as the| login s|
|00005ad0| 63 72 69 70 74 2e 0a 46 | 6f 72 20 64 65 66 61 75 |cript..F|or defau|
|00005ae0| 6c 74 20 75 73 65 72 20 | 27 2a 27 20 73 6c 69 70 |lt user |'*' slip|
|00005af0| 6c 6f 67 69 6e 20 6c 6f | 6f 6b 73 20 66 6f 72 20 |login lo|oks for |
|00005b00| 73 6c 69 70 2e 6c 6f 67 | 6f 75 74 2e 2a 20 61 6e |slip.log|out.* an|
|00005b10| 64 20 69 66 20 69 74 20 | 64 6f 65 73 6e 27 74 0a |d if it |doesn't.|
|00005b20| 65 78 69 73 74 2c 20 69 | 74 20 75 73 65 73 20 73 |exist, i|t uses s|
|00005b30| 6c 69 70 2e 6c 6f 67 6f | 75 74 2e 0a 2e 53 73 20 |lip.logo|ut...Ss |
|00005b40| 46 6f 72 6d 61 74 20 6f | 66 20 2f 65 74 63 2f 73 |Format o|f /etc/s|
|00005b50| 6c 69 70 2e 68 6f 73 74 | 73 0a 43 6f 6d 6d 65 6e |lip.host|s.Commen|
|00005b60| 74 73 20 28 6c 69 6e 65 | 73 20 73 74 61 72 74 69 |ts (line|s starti|
|00005b70| 6e 67 20 77 69 74 68 20 | 61 20 60 23 27 29 20 61 |ng with |a `#') a|
|00005b80| 6e 64 20 62 6c 61 6e 6b | 20 6c 69 6e 65 73 20 61 |nd blank| lines a|
|00005b90| 72 65 20 69 67 6e 6f 72 | 65 64 2e 0a 4f 74 68 65 |re ignor|ed..Othe|
|00005ba0| 72 20 6c 69 6e 65 73 20 | 6d 75 73 74 20 73 74 61 |r lines |must sta|
|00005bb0| 72 74 20 77 69 74 68 20 | 61 0a 2e 41 72 20 6c 6f |rt with |a..Ar lo|
|00005bc0| 67 69 6e 6e 61 6d 65 0a | 62 75 74 20 74 68 65 20 |ginname.|but the |
|00005bd0| 72 65 6d 61 69 6e 69 6e | 67 20 61 72 67 75 6d 65 |remainin|g argume|
|00005be0| 6e 74 73 20 63 61 6e 20 | 62 65 20 77 68 61 74 65 |nts can |be whate|
|00005bf0| 76 65 72 20 69 73 20 61 | 70 70 72 6f 70 72 69 61 |ver is a|ppropria|
|00005c00| 74 65 20 66 6f 72 20 74 | 68 65 0a 2e 50 61 20 20 |te for t|he..Pa |
|00005c10| 73 6c 69 70 2e 6c 6f 67 | 69 6e 0a 66 69 6c 65 20 |slip.log|in.file |
|00005c20| 74 68 61 74 20 77 69 6c | 6c 20 62 65 20 65 78 65 |that wil|l be exe|
|00005c30| 63 75 74 65 64 20 66 6f | 72 20 74 68 61 74 20 6e |cuted fo|r that n|
|00005c40| 61 6d 65 2e 0a 41 72 67 | 75 6d 65 6e 74 73 20 61 |ame..Arg|uments a|
|00005c50| 72 65 20 73 65 70 61 72 | 61 74 65 64 20 62 79 20 |re separ|ated by |
|00005c60| 77 68 69 74 65 20 73 70 | 61 63 65 20 61 6e 64 20 |white sp|ace and |
|00005c70| 66 6f 6c 6c 6f 77 20 6e | 6f 72 6d 61 6c 0a 2e 58 |follow n|ormal..X|
|00005c80| 72 20 73 68 20 31 0a 71 | 75 6f 74 69 6e 67 20 63 |r sh 1.q|uoting c|
|00005c90| 6f 6e 76 65 6e 74 69 6f | 6e 73 20 28 68 6f 77 65 |onventio|ns (howe|
|00005ca0| 76 65 72 2c 0a 2e 41 72 | 20 6c 6f 67 69 6e 6e 61 |ver,..Ar| loginna|
|00005cb0| 6d 65 0a 63 61 6e 6e 6f | 74 20 62 65 20 71 75 6f |me.canno|t be quo|
|00005cc0| 74 65 64 29 2e 0a 55 73 | 75 61 6c 6c 79 2c 20 6c |ted)..Us|ually, l|
|00005cd0| 69 6e 65 73 20 68 61 76 | 65 20 74 68 65 20 66 6f |ines hav|e the fo|
|00005ce0| 72 6d 0a 2e 42 64 20 2d | 6c 69 74 65 72 61 6c 20 |rm..Bd -|literal |
|00005cf0| 2d 6f 66 66 73 65 74 20 | 69 6e 64 65 6e 74 0a 6c |-offset |indent.l|
|00005d00| 6f 67 69 6e 6e 61 6d 65 | 20 6c 6f 63 61 6c 2d 61 |oginname| local-a|
|00005d10| 64 64 72 65 73 73 20 72 | 65 6d 6f 74 65 2d 61 64 |ddress r|emote-ad|
|00005d20| 64 72 65 73 73 20 6e 65 | 74 6d 61 73 6b 20 6f 70 |dress ne|tmask op|
|00005d30| 74 2d 61 72 67 73 0a 2e | 45 64 0a 2e 50 70 0a 77 |t-args..|Ed..Pp.w|
|00005d40| 68 65 72 65 0a 2e 45 6d | 20 6c 6f 63 61 6c 2d 61 |here..Em| local-a|
|00005d50| 64 64 72 65 73 73 0a 69 | 73 20 74 68 65 20 49 50 |ddress.i|s the IP|
|00005d60| 20 68 6f 73 74 20 6e 61 | 6d 65 20 6f 72 20 61 64 | host na|me or ad|
|00005d70| 64 72 65 73 73 20 6f 66 | 20 74 68 65 20 6c 6f 63 |dress of| the loc|
|00005d80| 61 6c 20 65 6e 64 20 6f | 66 20 74 68 65 20 73 6c |al end o|f the sl|
|00005d90| 69 70 20 6c 69 6e 65 2e | 0a 2e 45 6d 20 72 65 6d |ip line.|..Em rem|
|00005da0| 6f 74 65 2d 61 64 64 72 | 65 73 73 0a 69 73 20 74 |ote-addr|ess.is t|
|00005db0| 68 65 20 49 50 20 68 6f | 73 74 20 6e 61 6d 65 20 |he IP ho|st name |
|00005dc0| 6f 72 20 61 64 64 72 65 | 73 73 20 6f 66 20 74 68 |or addre|ss of th|
|00005dd0| 65 20 72 65 6d 6f 74 65 | 20 65 6e 64 20 6f 66 20 |e remote| end of |
|00005de0| 74 68 65 20 73 6c 69 70 | 20 6c 69 6e 65 20 6f 72 |the slip| line or|
|00005df0| 20 74 68 65 20 44 59 4e | 41 4d 49 43 20 6b 65 79 | the DYN|AMIC key|
|00005e00| 77 6f 72 64 20 77 68 69 | 63 68 20 77 69 6c 6c 20 |word whi|ch will |
|00005e10| 62 65 20 74 72 61 6e 73 | 6c 61 74 65 64 20 69 6e |be trans|lated in|
|00005e20| 74 6f 20 61 6e 20 61 64 | 64 72 65 73 73 20 66 72 |to an ad|dress fr|
|00005e30| 6f 6d 20 74 68 65 20 73 | 6c 69 70 2e 74 74 79 20 |om the s|lip.tty |
|00005e40| 66 69 6c 65 2e 0a 2e 45 | 6d 20 6e 65 74 6d 61 73 |file...E|m netmas|
|00005e50| 6b 0a 69 73 20 74 68 65 | 20 61 70 70 72 6f 70 72 |k.is the| appropr|
|00005e60| 69 61 74 65 20 49 50 20 | 6e 65 74 6d 61 73 6b 2e |iate IP |netmask.|
|00005e70| 20 20 54 68 65 73 65 20 | 61 72 67 75 6d 65 6e 74 | These |argument|
|00005e80| 73 20 61 72 65 20 70 61 | 73 73 65 64 0a 64 69 72 |s are pa|ssed.dir|
|00005e90| 65 63 74 6c 79 20 74 6f | 0a 2e 58 72 20 69 66 63 |ectly to|..Xr ifc|
|00005ea0| 6f 6e 66 69 67 20 38 20 | 2e 0a 2e 45 6d 20 4f 70 |onfig 8 |...Em Op|
|00005eb0| 74 2d 61 72 67 73 0a 61 | 72 65 20 6f 70 74 69 6f |t-args.a|re optio|
|00005ec0| 6e 61 6c 20 61 72 67 75 | 6d 65 6e 74 73 20 75 73 |nal argu|ments us|
|00005ed0| 65 64 20 74 6f 20 63 6f | 6e 66 69 67 75 72 65 20 |ed to co|nfigure |
|00005ee0| 74 68 65 20 6c 69 6e 65 | 2e 0a 2e 53 73 20 54 68 |the line|...Ss Th|
|00005ef0| 65 20 46 6f 72 6d 61 74 | 20 6f 66 20 2f 65 74 63 |e Format| of /etc|
|00005f00| 2f 73 6c 69 70 2e 74 74 | 79 0a 69 73 20 73 69 6d |/slip.tt|y.is sim|
|00005f10| 70 6c 65 2e 20 41 20 6c | 69 6e 65 20 74 68 61 74 |ple. A l|ine that|
|00005f20| 20 73 74 61 72 74 73 20 | 77 69 74 68 20 27 23 27 | starts |with '#'|
|00005f30| 20 69 73 20 74 72 65 61 | 74 65 64 20 61 73 20 61 | is trea|ted as a|
|00005f40| 20 63 6f 6d 6d 65 6e 74 | 20 6f 74 68 65 72 77 69 | comment| otherwi|
|00005f50| 73 65 0a 2e 4e 6d 20 73 | 6c 69 70 6c 6f 67 69 6e |se..Nm s|liplogin|
|00005f60| 0a 65 78 70 65 63 74 73 | 20 69 6e 20 63 6f 6c 75 |.expects| in colu|
|00005f70| 6d 6e 20 31 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |mn 1 the| name of|
|00005f80| 20 74 68 65 20 73 6c 69 | 70 64 65 76 69 63 65 20 | the sli|pdevice |
|00005f90| 61 6e 64 20 69 6e 20 63 | 6f 6c 75 6d 6e 20 32 20 |and in c|olumn 2 |
|00005fa0| 74 68 65 20 0a 49 50 20 | 68 6f 73 74 20 6e 61 6d |the .IP |host nam|
|00005fb0| 65 20 6f 72 20 61 64 72 | 65 73 73 20 74 68 61 74 |e or adr|ess that|
|00005fc0| 20 79 6f 75 20 77 69 73 | 68 20 74 6f 20 61 73 73 | you wis|h to ass|
|00005fd0| 69 67 6e 20 74 6f 20 74 | 68 69 73 20 64 65 76 69 |ign to t|his devi|
|00005fe0| 63 65 2e 0a 2e 53 68 20 | 45 58 41 4d 50 4c 45 0a |ce...Sh |EXAMPLE.|
|00005ff0| 54 68 65 20 6e 6f 72 6d | 61 6c 20 75 73 65 20 6f |The norm|al use o|
|00006000| 66 0a 2e 4e 6d 20 73 6c | 69 70 6c 6f 67 69 6e 0a |f..Nm sl|iplogin.|
|00006010| 69 73 20 74 6f 20 63 72 | 65 61 74 65 20 61 0a 2e |is to cr|eate a..|
|00006020| 50 61 20 2f 65 74 63 2f | 70 61 73 73 77 64 0a 65 |Pa /etc/|passwd.e|
|00006030| 6e 74 72 79 20 66 6f 72 | 20 65 61 63 68 20 6c 65 |ntry for| each le|
|00006040| 67 61 6c 2c 20 72 65 6d | 6f 74 65 20 73 6c 69 70 |gal, rem|ote slip|
|00006050| 20 73 69 74 65 20 77 69 | 74 68 0a 2e 4e 6d 20 73 | site wi|th..Nm s|
|00006060| 6c 69 70 6c 6f 67 69 6e | 0a 61 73 20 74 68 65 20 |liplogin|.as the |
|00006070| 73 68 65 6c 6c 20 66 6f | 72 20 74 68 61 74 20 65 |shell fo|r that e|
|00006080| 6e 74 72 79 2e 20 20 45 | 2e 67 2e 2c 0a 2e 42 64 |ntry. E|.g.,..Bd|
|00006090| 20 2d 6c 69 74 65 72 61 | 6c 0a 53 66 6f 6f 3a 69 | -litera|l.Sfoo:i|
|000060a0| 6b 68 75 79 36 3a 32 30 | 31 30 3a 31 3a 73 6c 69 |khuy6:20|10:1:sli|
|000060b0| 70 20 6c 69 6e 65 20 74 | 6f 20 66 6f 6f 3a 2f 74 |p line t|o foo:/t|
|000060c0| 6d 70 3a 2f 75 73 72 2f | 73 62 69 6e 2f 73 6c 69 |mp:/usr/|sbin/sli|
|000060d0| 70 6c 6f 67 69 6e 0a 2e | 45 64 0a 2e 50 70 0a 28 |plogin..|Ed..Pp.(|
|000060e0| 4f 75 72 20 63 6f 6e 76 | 65 6e 74 69 6f 6e 20 69 |Our conv|ention i|
|000060f0| 73 20 74 6f 20 6e 61 6d | 65 20 74 68 65 20 61 63 |s to nam|e the ac|
|00006100| 63 6f 75 6e 74 20 75 73 | 65 64 20 62 79 20 72 65 |count us|ed by re|
|00006110| 6d 6f 74 65 20 68 6f 73 | 74 0a 2e 41 72 20 68 6f |mote hos|t..Ar ho|
|00006120| 73 74 6e 61 6d 65 0a 61 | 73 0a 2e 45 6d 20 53 68 |stname.a|s..Em Sh|
|00006130| 6f 73 74 6e 61 6d 65 20 | 2e 20 29 0a 54 68 65 6e |ostname |. ).Then|
|00006140| 20 61 6e 20 65 6e 74 72 | 79 20 69 73 20 61 64 64 | an entr|y is add|
|00006150| 65 64 20 74 6f 0a 2e 50 | 61 20 73 6c 69 70 2e 68 |ed to..P|a slip.h|
|00006160| 6f 73 74 73 0a 74 68 61 | 74 20 6c 6f 6f 6b 73 20 |osts.tha|t looks |
|00006170| 6c 69 6b 65 3a 0a 2e 50 | 70 0a 2e 42 64 20 2d 6c |like:..P|p..Bd -l|
|00006180| 69 74 65 72 61 6c 20 2d | 6f 66 66 73 65 74 20 69 |iteral -|offset i|
|00006190| 6e 64 65 6e 74 20 2d 63 | 6f 6d 70 61 63 74 0a 53 |ndent -c|ompact.S|
|000061a0| 66 6f 6f 09 60 68 6f 73 | 74 6e 61 6d 65 60 09 66 |foo.`hos|tname`.f|
|000061b0| 6f 6f 09 6e 65 74 6d 61 | 73 6b 0a 2e 45 64 0a 2e |oo.netma|sk..Ed..|
|000061c0| 50 70 0a 77 68 65 72 65 | 0a 2e 45 6d 20 60 68 6f |Pp.where|..Em `ho|
|000061d0| 73 74 6e 61 6d 65 60 0a | 77 69 6c 6c 20 62 65 20 |stname`.|will be |
|000061e0| 65 76 61 6c 75 61 74 65 | 64 20 62 79 0a 2e 58 72 |evaluate|d by..Xr|
|000061f0| 20 73 68 0a 74 6f 20 74 | 68 65 20 6c 6f 63 61 6c | sh.to t|he local|
|00006200| 20 68 6f 73 74 20 6e 61 | 6d 65 20 61 6e 64 0a 2e | host na|me and..|
|00006210| 45 6d 20 6e 65 74 6d 61 | 73 6b 0a 69 73 20 74 68 |Em netma|sk.is th|
|00006220| 65 20 6c 6f 63 61 6c 20 | 68 6f 73 74 20 49 50 20 |e local |host IP |
|00006230| 6e 65 74 6d 61 73 6b 2e | 0a 2e 50 70 0a 4e 6f 74 |netmask.|..Pp.Not|
|00006240| 65 20 74 68 61 74 0a 2e | 4e 6d 20 73 6c 69 70 6c |e that..|Nm slipl|
|00006250| 6f 67 69 6e 0a 6d 75 73 | 74 20 62 65 20 73 65 74 |ogin.mus|t be set|
|00006260| 75 69 64 20 74 6f 20 72 | 6f 6f 74 20 61 6e 64 2c |uid to r|oot and,|
|00006270| 20 77 68 69 6c 65 20 6e | 6f 74 20 61 20 73 65 63 | while n|ot a sec|
|00006280| 75 72 69 74 79 20 68 6f | 6c 65 2c 20 6d 6f 72 61 |urity ho|le, mora|
|00006290| 6c 20 64 65 66 65 63 74 | 69 76 65 73 0a 63 61 6e |l defect|ives.can|
|000062a0| 20 75 73 65 20 69 74 20 | 74 6f 20 70 6c 61 63 65 | use it |to place|
|000062b0| 20 74 65 72 6d 69 6e 61 | 6c 20 6c 69 6e 65 73 20 | termina|l lines |
|000062c0| 69 6e 20 61 6e 20 75 6e | 75 73 61 62 6c 65 20 73 |in an un|usable s|
|000062d0| 74 61 74 65 20 61 6e 64 | 2f 6f 72 20 64 65 6e 79 |tate and|/or deny|
|000062e0| 0a 61 63 63 65 73 73 20 | 74 6f 20 6c 65 67 69 74 |.access |to legit|
|000062f0| 69 6d 61 74 65 20 75 73 | 65 72 73 20 6f 66 20 61 |imate us|ers of a|
|00006300| 20 72 65 6d 6f 74 65 20 | 73 6c 69 70 20 6c 69 6e | remote |slip lin|
|00006310| 65 2e 20 20 54 6f 20 70 | 72 65 76 65 6e 74 20 74 |e. To p|revent t|
|00006320| 68 69 73 2c 0a 61 20 73 | 69 74 65 20 63 61 6e 20 |his,.a s|ite can |
|00006330| 63 72 65 61 74 65 20 61 | 20 67 72 6f 75 70 2c 20 |create a| group, |
|00006340| 73 61 79 0a 2e 45 6d 20 | 73 6c 69 70 20 2c 0a 74 |say..Em |slip ,.t|
|00006350| 68 61 74 20 6f 6e 6c 79 | 20 74 68 65 20 73 6c 69 |hat only| the sli|
|00006360| 70 20 6c 6f 67 69 6e 20 | 61 63 63 6f 75 6e 74 73 |p login |accounts|
|00006370| 20 61 72 65 20 70 75 74 | 20 69 6e 20 74 68 65 6e | are put| in then|
|00006380| 20 6d 61 6b 65 20 73 75 | 72 65 20 74 68 61 74 0a | make su|re that.|
|00006390| 2e 50 61 20 2f 75 73 72 | 2f 73 62 69 6e 2f 73 6c |.Pa /usr|/sbin/sl|
|000063a0| 69 70 6c 6f 67 69 6e 0a | 69 73 20 69 6e 20 67 72 |iplogin.|is in gr|
|000063b0| 6f 75 70 0a 2e 45 6d 20 | 73 6c 69 70 0a 61 6e 64 |oup..Em |slip.and|
|000063c0| 20 6d 6f 64 65 20 34 35 | 35 30 20 28 73 65 74 75 | mode 45|50 (setu|
|000063d0| 69 64 20 72 6f 6f 74 2c | 20 6f 6e 6c 79 20 67 72 |id root,| only gr|
|000063e0| 6f 75 70 0a 2e 45 6d 20 | 73 6c 69 70 0a 63 61 6e |oup..Em |slip.can|
|000063f0| 20 65 78 65 63 75 74 65 | 20 62 69 6e 61 72 79 29 | execute| binary)|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.